返回介绍

QStyleFactory Class

发布于 2019-10-04 15:03:05 字数 1287 浏览 1077 评论 0 收藏 0

The QStyleFactory class creates QStyle objects. More...

#include <qstylefactory.h>

List of all member functions.

Static Public Members

  • QStringList keys ()
  • QStyle * create ( constQString&key )

Detailed Description

The QStyleFactory class creates QStyle objects.

The style factory creates a QStyle object for a given key with QStyleFactory::create(key).

The styles are either built-in or dynamically loaded from a style plugin (see QStylePlugin).

QStyleFactory::keys() returns a list of valid keys, typically including "windows", "motif", "cde", "motifplus", "platinum", "sgi" and "compact". Depending on the platform, "windowsxp", "aqua" or "macintosh" may be available.


Member Function Documentation

QStyle* QStyleFactory::create ( constQString&key ) [static]

Creates a QStyle object that matches key. This is either a built-in style, or a style from a style plugin.

See also keys().

Example: themes/wood.cpp.

QStringList QStyleFactory::keys () [static]

Returns the list of keys this factory can create styles for.

See also create().

Example: themes/themes.cpp.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文