Jan*_*Jan 6 configuration kde qt kde4 qt5
我在我的计算机上正确设置 Qt5 应用程序时遇到问题。我正在使用 KDE4 运行 Ubuntu 14.04,我已经在 KDE 系统设置中配置了外观,并且该外观用于每个 qt4 应用程序和 gtk 应用程序,但不在 qt5 应用程序中。最烦人的想法是我使用双击来激活项目,但在 qt5 应用程序中,这被忽略并且项目是通过单击激活的。
有人知道如何更改默认的 Qt5 设置吗?我尝试删除我的 .kde 文件夹,将其移动到 .kde4,在 KDE 系统设置中尝试不同的配置,尝试找到 Qt5 的 qtconfig(似乎不再存在),甚至安装了每日构建的 KF5 并使用了 KDE5 系统设置我在这里设置主题、颜色和鼠标行为,甚至在 Qt5 应用程序中都被忽略了。
我知道 Qt5 会尝试自动使用系统设置 - 这就是没有 qtconfig 的原因,但它根本不起作用。
所以在这里我要求任何人在这个主题上提供帮助,或者至少一些信息如何正确配置 Qt 或者说更好:如何至少以某种方式配置 qt5。
此外,我使用的是 ubuntu 的 QT5.2.1,但我也从 Qt 网站安装了 QT5.3,但两个版本的行为都相同
不幸的是, Qt5 设计者删除了与 Qt4 中相当的包。 \n他们还留下了一个相当大的错误,因为 Qt5 忽略了系统的字体配置。qt4-qtconfig
那么就没有办法“纠正”Qt5 使用的字体。
\n\n为了让某些应用程序像桌面上的其他应用程序一样运行,我必须尽可能使用 Qt4 重新编译它们。
\n\n因此,该错误现已报告为已于 2014 年 8 月 20 日在 Qt5 版本 5.4 中关闭...
\n\n然而,目前 Qt5 版本 5.4 还没有可用的 Debian 或 Ubuntu 软件包,即使在\xe2\x80\x9cCanonical Qt5 Edgers\xe2\x80\x9d 团队 PPA中也是如此。
\n\n虽然我在http://qt-apps.org网站上找到了Qt5配置工具,但这个应用程序仍然需要Qt5版本5.4.0。
\n\n我希望 Ubuntu 有一天能够将此版本向后移植到 Trusty 14.04 LTS ...
\nQt5风格
您可以使用样式表编辑 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.
Run Code Online (Sandbox Code Playgroud)
更多样式表:
Qt曲线
最新的 QtCurve /1, 2/ 具有基于 Qt 5.x 的应用程序的小部件样式。
QMPlay2 (Qt5) /3/ 具有原生 Qt5 和 QtCurve 小部件样式:

链接
| 归档时间: |
|
| 查看次数: |
5380 次 |
| 最近记录: |