Qt使用setStyleSheet 一定要注意速度,平凡的调用,一般会消耗0.25倍的CPU资源

styleSheet : QString

This property holds the widget's style sheet.

The style sheet contains a textual description of customizations to the widget's style, as described in the Qt Style Sheets document.

Since Qt 4.5, Qt style sheets fully supports Mac OS X.

Warning: Qt style sheets are currently not supported for custom QStyle subclasses. We plan to address this in some future release.

This property was introduced in Qt 4.2.

Access functions:

QString styleSheet () const
void setStyleSheet ( const QString & styleSheet )


一定要注意速度,平凡的调用,一般会消耗0.25倍的CPU资源

你可能感兴趣的:(Qt使用setStyleSheet 一定要注意速度,平凡的调用,一般会消耗0.25倍的CPU资源)