Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qtquickcontrols-macos.qdoc
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5 \page qtquickcontrols-macos.html
6 \title macOS Style
7
8 The macOS style is a style that looks native on macOS.
9 \l {detailed-desc-macOS}{More...}
10
11 \styleimport {QtQuick.Controls.macOS} {Qt 6.0}
12
13 \target detailed-desc-macOS
14
15 The macOS style is a style that looks native on macOS. The controls are drawn run-time using
16 native frameworks, and is therefore only available for applications running on macOS.
17
18 \note Be aware that the apperance of this style can change from one minor Qt version to the
19 next, to better blend in with native applications on the platform.
20
21 \include style-screenshots.qdocinc {file} {macOS} {macos}
22
23 To run an application with the macOS style, see
24 \l {Using Styles in Qt Quick Controls}.
25
26 \section2 Current state
27
28 The macOS style is under development, and some controls are not yet supported. Those
29 controls are: \l BusyIndicator, \l DelayButton, \l PageIndicator, \l RangeSlider, \l Switch, \l TabBar and
30 \l Tumbler. Those will fall back to use the \l {Fusion Style}.
31
32 \section2 Customization
33
34 The goal of the macOS style is to for the controls look and feel as similar as possible to the
35 native controls in UIKit. The style will follow the theme and colors configured globally from
36 System Preferences, and does not come with a separate customization API on top of that.
37
38 \note The macOS style is not suitable for \l {Customizing Qt Quick Controls}{customizing}.
39 The main reason is that it sometimes draw both the contents and the background
40 onto a single background item, which will not look good together with a custom contentItem.
41 It also tends to use padding and inset values that are different from the other styles.
42 \include customizing-native-styles.qdocinc
43*/