Documentation ¶
Index ¶
- func DeleteQQuickStyle(this *QQuickStyle)
- func KeepMe()
- func QQuickStyle_AddStylePath(path string)
- func QQuickStyle_AvailableStyles() *qtcore.QStringList
- func QQuickStyle_Name() string
- func QQuickStyle_Path() string
- func QQuickStyle_SetFallbackStyle(style string)
- func QQuickStyle_SetStyle(style string)
- func QQuickStyle_StylePathList() *qtcore.QStringList
- type QQuickStyle
- func (this *QQuickStyle) AddStylePath(path string)
- func (this *QQuickStyle) AvailableStyles() *qtcore.QStringList
- func (this *QQuickStyle) GetCthis() unsafe.Pointer
- func (this *QQuickStyle) Name() string
- func (*QQuickStyle) NewFromPointer(cthis unsafe.Pointer) *QQuickStyle
- func (this *QQuickStyle) Path() string
- func (ptr *QQuickStyle) QQuickStyle_PTR() *QQuickStyle
- func (this *QQuickStyle) SetCthis(cthis unsafe.Pointer)
- func (this *QQuickStyle) SetFallbackStyle(style string)
- func (this *QQuickStyle) SetStyle(style string)
- func (this *QQuickStyle) StylePathList() *qtcore.QStringList
- type QQuickStyle_ITF
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteQQuickStyle ¶
func DeleteQQuickStyle(this *QQuickStyle)
func QQuickStyle_AddStylePath ¶ added in v5.12.106
func QQuickStyle_AddStylePath(path string)
func QQuickStyle_AvailableStyles ¶
func QQuickStyle_AvailableStyles() *qtcore.QStringList
func QQuickStyle_Name ¶
func QQuickStyle_Name() string
func QQuickStyle_Path ¶
func QQuickStyle_Path() string
func QQuickStyle_SetFallbackStyle ¶
func QQuickStyle_SetFallbackStyle(style string)
func QQuickStyle_SetStyle ¶
func QQuickStyle_SetStyle(style string)
func QQuickStyle_StylePathList ¶ added in v5.12.106
func QQuickStyle_StylePathList() *qtcore.QStringList
Types ¶
type QQuickStyle ¶
func NewQQuickStyleFromPointer ¶
func NewQQuickStyleFromPointer(cthis unsafe.Pointer) *QQuickStyle
func (*QQuickStyle) AddStylePath ¶ added in v5.12.106
func (this *QQuickStyle) AddStylePath(path string)
Adds path as a directory where Qt Quick Controls 2 searches for available styles.
The path may be any local filesystem directory or Qt Resource directory. For example, the following paths are all valid:
/path/to/styles/ file:///path/to/styles/ :/path/to/styles/ qrc:/path/to/styles/)
The path will be converted into canonical form before it is added to the style path list.
The newly added path will be first in the stylePathList().
This function was introduced in Qt 5.12.
See also stylePathList() and availableStyles().
func (*QQuickStyle) AvailableStyles ¶
func (this *QQuickStyle) AvailableStyles() *qtcore.QStringList
Returns the names of the available styles.
Note: The method must be called after creating an instance of QGuiApplication.
This function was introduced in Qt 5.9.
See also stylePathList() and addStylePath().
func (*QQuickStyle) GetCthis ¶
func (this *QQuickStyle) GetCthis() unsafe.Pointer
func (*QQuickStyle) Name ¶
func (this *QQuickStyle) Name() string
Returns the name of the application style.
Note: The application style can be specified by passing a -style command line argument. Therefore name() may not return a fully resolved value if called before constructing a QGuiApplication.
func (*QQuickStyle) NewFromPointer ¶
func (*QQuickStyle) NewFromPointer(cthis unsafe.Pointer) *QQuickStyle
func (*QQuickStyle) Path ¶
func (this *QQuickStyle) Path() string
Returns the path of an overridden application style, or an empty string if the style is one of the built-in Qt Quick Controls 2 styles.
Note: The application style can be specified by passing a -style command line argument. Therefore path() may not return a fully resolved value if called before constructing a QGuiApplication.
func (*QQuickStyle) QQuickStyle_PTR ¶
func (ptr *QQuickStyle) QQuickStyle_PTR() *QQuickStyle
func (*QQuickStyle) SetCthis ¶
func (this *QQuickStyle) SetCthis(cthis unsafe.Pointer)
func (*QQuickStyle) SetFallbackStyle ¶
func (this *QQuickStyle) SetFallbackStyle(style string)
Sets the application fallback style to style.
Note: The fallback style must be the name of one of the built-in Qt Quick Controls 2 styles, e.g. "Material".
Note: The style must be configured before loading QML that imports Qt Quick Controls 2. It is not possible to change the style after the QML types have been registered.
The fallback style can be also specified by setting the QT_QUICK_CONTROLS_FALLBACK_STYLE environment variable.
This function was introduced in Qt 5.8.
See also setStyle() and Using Styles in Qt Quick Controls 2.
func (*QQuickStyle) SetStyle ¶
func (this *QQuickStyle) SetStyle(style string)
Sets the application style to style.
Note: The style must be configured before loading QML that imports Qt Quick Controls 2. It is not possible to change the style after the QML types have been registered.
See also setFallbackStyle() and Using Styles in Qt Quick Controls 2.
func (*QQuickStyle) StylePathList ¶ added in v5.12.106
func (this *QQuickStyle) StylePathList() *qtcore.QStringList
Returns the list of directories where Qt Quick Controls 2 searches for available styles.
By default, the list contains paths specified in the QT_QUICK_CONTROLS_STYLE_PATH environment variable, and any existing QtQuick/Controls.2 sub-directories in QQmlEngine::importPathList().
This function was introduced in Qt 5.12.
See also addStylePath() and availableStyles().
type QQuickStyle_ITF ¶
type QQuickStyle_ITF interface {
QQuickStyle_PTR() *QQuickStyle
}