1 | /****************************************************************************
|
---|
2 | **
|
---|
3 | ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
---|
4 | ** All rights reserved.
|
---|
5 | ** Contact: Nokia Corporation ([email protected])
|
---|
6 | **
|
---|
7 | ** This file is part of the documentation of the Qt Toolkit.
|
---|
8 | **
|
---|
9 | ** $QT_BEGIN_LICENSE:FDL$
|
---|
10 | ** Commercial Usage
|
---|
11 | ** Licensees holding valid Qt Commercial licenses may use this file in
|
---|
12 | ** accordance with the Qt Commercial License Agreement provided with the
|
---|
13 | ** Software or, alternatively, in accordance with the terms contained in a
|
---|
14 | ** written agreement between you and Nokia.
|
---|
15 | **
|
---|
16 | ** GNU Free Documentation License
|
---|
17 | ** Alternatively, this file may be used under the terms of the GNU Free
|
---|
18 | ** Documentation License version 1.3 as published by the Free Software
|
---|
19 | ** Foundation and appearing in the file included in the packaging of this
|
---|
20 | ** file.
|
---|
21 | **
|
---|
22 | ** If you have questions regarding the use of this file, please contact
|
---|
23 | ** Nokia at [email protected].
|
---|
24 | ** $QT_END_LICENSE$
|
---|
25 | **
|
---|
26 | ****************************************************************************/
|
---|
27 |
|
---|
28 | /*!
|
---|
29 | \page qtmac-as-native.html
|
---|
30 | \title Qt is Mac OS X Native
|
---|
31 | \brief An explanation of Qt's native features on Mac OS X.
|
---|
32 | \ingroup platform-specific
|
---|
33 |
|
---|
34 | This document explains what makes an application native on Mac OS X.
|
---|
35 | It shows the areas where Qt is compliant, and the grey areas where
|
---|
36 | compliance is more questionable. (See also the document
|
---|
37 | \l{mac-differences.html}{Qt for Mac OS X - Specific Issues}.)
|
---|
38 |
|
---|
39 | Normally when referring to a native Mac application, one really means an
|
---|
40 | application that talks directly to the underlying window system, rather
|
---|
41 | than one that uses some intermediary (for example Apple's X11 server, or a
|
---|
42 | web browser). Qt applications run as first class citizens, just like
|
---|
43 | Cocoa, and Carbon applications. In fact, we use Carbon and HIView
|
---|
44 | internally to communicate with OS X.
|
---|
45 |
|
---|
46 | When an application is running as a first class citizen, it means that
|
---|
47 | it can interact with specific components of the Mac OS X experience:
|
---|
48 |
|
---|
49 | \tableofcontents
|
---|
50 |
|
---|
51 | \section1 The Global Menu Bar
|
---|
52 |
|
---|
53 | Qt does this via the QMenuBar abstraction. Mac users expect to
|
---|
54 | have a menu bar at the top of the screen and Qt honors this.
|
---|
55 |
|
---|
56 | Additionally, users expect certain conventions to be respected, for
|
---|
57 | example the application menu should contain About, Preferences,
|
---|
58 | Quit, etc. Qt handles this automatically, although it does not
|
---|
59 | provide a means of interacting directly with the application menu.
|
---|
60 | (By doing this automatically, Qt makes it easier to port Qt
|
---|
61 | applications to other platforms.)
|
---|
62 |
|
---|
63 | \section1 Aqua
|
---|
|
---|