LoginSignup
1
1

More than 3 years have passed since last update.

Fedora30 の Qt5.12 で、qDebug がコンソールに出力されない件

Posted at

Qt4.8 を使っっていた時は、何の問題もなく qDebug が出力されていたのですが、Qt5.12 を使ってみたところ、出力されず、qInfo を試してみたら出力されるという、謎に数時間はまっていました。

どうやら、Qt の仕様に変更があったらしく、以下のような環境変数を設定する事が必要でした。

それぞれのユーザでの設定

$ vim ~/.config/QtProject/qtlogging.ini

システム全体の設定

# vim /etc/xdg/QtProject/qtlogging.ini

ファイルの内容

[Rules]
*.debug=true
qt.*.debug=false

(参考)
https://brendanwhitfield.wordpress.com/2016/06/08/enabling-qdebug-on-fedora/

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1