web-dev-qa-db-ja.com

Qt 5の構成

コンピューターでQt5アプリを正しく設定するのに問題があります。 Ubuntu 14.04をKDE4で実行しています。KDEシステム設定で外観を構成し、その外観はすべてのqt4アプリとgtkアプリで使用されていますが、qt5アプリでは使用されていません。最も厄介なのは、ダブルクリックを使用してアイテムをアクティブにすることですが、qt5アプリではこれは無視され、アイテムはシングルクリックでアクティブになります。

デフォルトのQt5設​​定を変更する方法を知っている人はいますか? .kdeフォルダーを削除して、.kde4に移動し、KDEシステム設定で別の構成を試し、Qt5のqtconfig(もう存在しないようです)を見つけようとし、KF5のデイリービルドをインストールし、KDE5システム設定を使用しましたテーマ、カラーリング、マウスの動作を設定しましたが、Qt5アプリでは無視されていました。

Qt5はシステム設定を自動的に使用しようとすることを知っています。これがqtconfigが存在しない理由ですが、まったく機能しません。

だからここで私はこのトピックで誰かに助けを求めるか、少なくともいくつかの情報をQtを適切に設定する方法またはそれをより良く言う方法を求めています:少なくとも何らかの方法でqt5を設定する方法。

また、ubuntuのQT5.2.1を使用していますが、Qt WebサイトからQT5.3もインストールしましたが、動作は両方のバージョンで同じです

6
Jan

残念ながら Qt5デザイナーはパッケージを削除しました Qt4のqt4-qtconfigと同等です。 Qt5はシステムのfont-configを無視するため、彼らは大きなバグを残しました

Qt5で使用されるフォントを「修正」する方法はありません。

一部のアプリケーションをデスクトップ上で他のアプリケーションと同じように動作させるには、可能な限りQt4でアプリケーションを再コンパイルする必要がありました。

したがって、バグは2014年8月20日にQt5バージョン5.4でクローズされたと報告されています...

ただし、現時点では “ Canonical Qt5 Edgers”チームPPA であっても、Qt5バージョン5.4から利用可能なDebianパッケージもUbuntuパッケージもありません。

http://qt-apps.org ウェブサイトで Qt5 Configuration Tool を見つけましたが、それでもこのアプリにはQt5バージョン5.4.0が必要です。

UbuntuがいつかこのバージョンをTrusty 14.04 LTSにバックポートすることを願っています...

2
Antonio

Qt5スタイル

スタイルシートを使用して、Qtアプリケーションの外観を編集できます。

http://qt-project.org/doc/qt-5/qapplication.html#QApplication

All Qt programs automatically support the following command line options:
-style= style, sets the application GUI style. Possible values depend on your system configuration. If you compiled Qt with additional styles or have additional styles as plugins these will be available to the -style command line option. You can also set the style for all Qt applications by setting the QT_STYLE_OVERRIDE environment variable.
-style style, is the same as listed above.
-stylesheet= stylesheet, sets the application styleSheet. The value must be a path to a file that contains the Style Sheet.

Note: Relative URLs in the Style Sheet file are relative to the Style Sheet file's path.
-stylesheet stylesheet, is the same as listed above.
-widgetcount, prints debug message at the end about number of widgets left undestroyed and maximum number of widgets existed at the same time
-reverse, sets the application's layout direction to Qt::RightToLeft
-qmljsdebugger=, activates the QML/JS debugger with a specified port. The value must be of format port:1234[,block], where block is optional and will make the application wait until a debugger connects to it.

その他のスタイルシート:

QtCurve

最新のQtCurve/1、2 /には、Qt 5.xに基づくアプリケーション用のウィジェットスタイルがあります。

ネイティブQt5およびQtCurveウィジェットスタイルのQMPlay2(Qt5)/ 3 /:

enter image description here

リンク

  1. https://github.com/QtCurve/qtcurve
  2. https://projects.kde.org/projects/playground/base/qtcurve
  3. http://qt-apps.org/content/show.php/QMPlay2?content=153339
1
user26687