QtitanRibbon是一款遵循Microsoft Ribbon UI Paradigm for Qt技术的Ribbon UI组件,致力于为Windows、Linux和Mac OS X提供功能完整的Ribbon组件。
Office 2016,在“整体界面风格方面,采用了灰色调主题。界面风格为Modern和Ribbon,无论是字体还是图标都采用了更高的DPI,便于观察和操作。”下面我们来看下具体代码操作!
Office2016Style类:
Header: #include Inherits: OfficeStyle
所有成员的列表,包括继承成员
Public Functions:
Office2016Style()
virtual ~Office2016Style()
void setTheme(Office2016Style::Theme theme)
Office2016Style::Theme theme() const
Reimplemented Public Functions:
virtual void polish(QWidget *widget) override
virtual QPalette standardPalette() const override
virtual QPixmap standardPixmap(QStyle::StandardPixmap sp, const QStyleOption *opt =
Q_NULL, const QWidget *widget = Q_NULL) const override
virtual int styleHint(QStyle::StyleHint hint, const QStyleOption *opt = Q_NULL,
const QWidget *widget = Q_NULL, QStyleHintReturn *shret = Q_NULL) const override
virtual QRect subControlRect(QStyle::ComplexControl control, const
QStyleOptionComplex *option, QStyle::SubControl subControl, const QWidget *widget =
Q_NULL) const override
virtual void unpolish(QWidget *widget) override
Qt商业组件Qtitan推荐:
感谢您的阅读,希望这篇文章能带给你一定的帮助!如果这篇文章没能满足你的需求、点击获取更多文章教程!