`
feipigwang
  • 浏览: 745356 次
  • 性别: Icon_minigender_2
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

设置qt程序主体样式

 
阅读更多

QApplication::setStyle(QStyleFactory::create(tr("cleanlooks")));

TheQStyleclass is an abstract base class that encapsulates the look and feel of a GUI. QStyleFactory creates aQStyleobject using thecreate() function and a key identifying the style. The styles are either built-in or dynamically loaded from a style plugin (seeQStylePlugin).

The valid keys can be retrieved using thekeys() 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.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics