设置qt程序主体样式
2010-07-20 18:27
302 查看
QApplication::setStyle(QStyleFactory::create(tr("cleanlooks")));
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI. QStyleFactory creates a QStyle object using the create() function and a key identifying the style. The styles are either built-in or dynamically loaded from a style plugin (see QStylePlugin).
The valid keys can be retrieved using the keys() function. Typically they include "windows", "motif", "cde", "plastique" and "cleanlooks". Depending on the platform, "windowsxp", "windowsvista" and "macintosh" may be available. Note that keys are case insensitive.
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI. QStyleFactory creates a QStyle object using the create() function and a key identifying the style. The styles are either built-in or dynamically loaded from a style plugin (see QStylePlugin).
The valid keys can be retrieved using the keys() function. Typically they include "windows", "motif", "cde", "plastique" and "cleanlooks". Depending on the platform, "windowsxp", "windowsvista" and "macintosh" may be available. Note that keys are case insensitive.
相关文章推荐
- qt 设置程序控件样式
- QT-程序图标设置
- Qt设置标题栏图标、文字和标题栏样式的方法
- 为Qt生成的可执行程序设置图标
- Qt 程序窗口最大、最小化相关的设置方法
- Qt for symbian 获取手机屏幕尺寸以及设置程序全屏
- 设置Qt程序图标
- Qt设置圆角按钮样式
- QT 设置程序界面风格
- 设置使mini2440开机运行自编的qt图形界面程序
- QT设置窗口模态 进程调用外部程序和入参
- 给Qt程序设置默认皮肤
- qt windows下设置qt程序图标
- QT设置程序的桌面图标
- QT的一个奇怪问题,设置了Qt::Tool后,点击弹出对话框的确定取消按钮,程序直接退出。
- Qt设置样式
- vs+qt设置程序运行时打开cmd窗口
- QT 设置应用程序图标和可执行程序图标(另有setWindowTitle和setWindowIcon)
- Qt - 设置程序界面风格(现成的QMacStyle等等)