QStyleFactory Class
QStyleFactoryクラスは、QStyle オブジェクトを作成します。詳細...
ヘッダー | #include <QStyleFactory> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
qmake: | QT += widgets |
静的パブリックメンバー
詳しい説明
QStyle クラスは、GUI のルック アンド フィールをカプセル化する抽象ベース クラスです。QStyleFactory は、create() 関数とスタイルを識別するキーを使用してQStyle オブジェクトを作成します。スタイルは組み込みか、スタイル・プラグインから動的にロードされます(QStylePlugin を参照)。
有効なキーは、keys ()関数を使用して取得できます。通常、"windows "と "fusion "が含まれます。プラットフォームによっては、"windowsvista "や "macos "も利用可能です。キーの大文字と小文字は区別されない。
QStyleも参照のこと 。
メンバー関数ドキュメント
[static]
QStyle *QStyleFactory::create(const QString &key)
与えられたkey にマッチするQStyle オブジェクトを作成し、返します。マッチするスタイルが見つからない場合はnullptr
を返します。
ビルトイン スタイルとスタイル プラグインからのスタイルの両方が、一致するスタイルに対してクエリされます。
注意: 使用されるキーは大文字と小文字を区別しません。
keys()も参照してください 。
[static]
QStringList QStyleFactory::keys()
有効なキーのリスト、つまりこのファクトリーがスタイルを作成できるキーのリストを返します。
create()も参照 ください。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.