Qtリファレンス QCoreApplication::setAttribute 新しいページはコチラ

提供: yonewiki
移動: 案内, 検索
(QCoreApplication::setAttribute 概要)
(QCoreApplication::setAttribute 概要)
25行: 25行:
 
}
 
}
 
</style>
 
</style>
<table>
+
<table border=0><tr><td align=center>Constant</td><td align=center>Value</td><td align=center>Description</td></tr><tr><td align=center>Qt::AA_DontShowIconsInMenus</td><td align=center>2</td><td align=center>Actions with the Icon property won't be shown in any menus unless specifically set by the QAction::iconVisibleInMenu property. Menus that are currently open or menus already created in the native macOS menubar may not pick up a change in this attribute. Changes in the QAction::iconVisibleInMenu property will always be picked up.</td></tr><tr><td align=center>Qt::AA_DontShowShortcutsInContextMenus</td><td align=center>28</td><td align=center>Actions with the Shortcut property won't be shown in any shortcut menus unless specifically set by the QAction::shortcutVisibleInContextMenu property. This value was added in Qt 5.10.</td></tr><tr><td align=center>Qt::AA_NativeWindows</td><td align=center>3</td><td align=center>Ensures that widgets have native windows.</td></tr><tr><td align=center>Qt::AA_DontCreateNativeWidgetSiblings</td><td align=center>4</td><td align=center>Ensures that siblings of native widgets stay non-native unless specifically set by the Qt::WA_NativeWindow attribute.</td></tr><tr><td align=center>Qt::AA_PluginApplication</td><td align=center>5</td><td align=center>Indicates that Qt is used to author a plugin. Depending on the operating system, it suppresses specific initializations that do not necessarily make sense in the plugin case. For example on macOS, this includes avoiding loading our nib for the main menu and not taking possession of the native menu bar. Setting this attribute to true will also set the AA_DontUseNativeMenuBar attribute to true. It also disables native event filters. This attribute must be set before QGuiApplication constructed. This value was added in Qt 5.7.</td></tr><tr><td align=center>Qt::AA_DontUseNativeMenuBar</td><td align=center>6</td><td align=center>All menubars created while this attribute is set to true won't be used as a native menubar (e.g, the menubar at the top of the main screen on macOS).</td></tr><tr><td align=center>Qt::AA_MacDontSwapCtrlAndMeta</td><td align=center>7</td><td align=center>On macOS by default, Qt swaps the Control and Meta (Command) keys (i.e., whenever Control is pressed, Qt sends Meta, and whenever Meta is pressed Control is sent). When this attribute is true, Qt will not do the flip. QKeySequence::StandardKey will also flip accordingly (i.e., QKeySequence::Copy will be Command+C on the keyboard regardless of the value set, though what is output for QKeySequence::toString() will be different).</td></tr><tr><td align=center>Qt::AA_Use96Dpi</td><td align=center>8</td><td align=center>Assume the screen has a resolution of 96 DPI rather than using the OS-provided resolution. This will cause font rendering to be consistent in pixels-per-point across devices rather than defining 1 point as 1/72 inch.</td></tr><tr><td align=center>Qt::AA_SynthesizeTouchForUnhandledMouseEvents</td><td align=center>11</td><td align=center>All mouse events that are not accepted by the application will be translated to touch events instead.</td></tr><tr><td align=center>Qt::AA_SynthesizeMouseForUnhandledTouchEvents</td><td align=center>12</td><td align=center>All touch events that are not accepted by the application will be translated to left button mouse events instead. This attribute is enabled by default.</td></tr><tr><td align=center>Qt::AA_UseHighDpiPixmaps</td><td align=center>13</td><td align=center>Make QIcon::pixmap() generate high-dpi pixmaps that can be larger than the requested size. Such pixmaps will have devicePixelRatio() set to a value higher than 1. After setting this attribute, application code that uses pixmap sizes in layout geometry calculations should typically divide by devicePixelRatio() to get device-independent layout geometry.</td></tr><tr><td align=center>Qt::AA_ForceRasterWidgets</td><td align=center>14</td><td align=center>Make top-level widgets use pure raster surfaces, and do not support non-native GL-based child widgets.</td></tr><tr><td align=center>Qt::AA_UseDesktopOpenGL</td><td align=center>15</td><td align=center>Forces the usage of desktop OpenGL (for example, opengl32.dll or libGL.so) on platforms that use dynamic loading of the OpenGL implementation. This attribute must be set before QGuiApplication is constructed. This value was added in Qt 5.3.</td></tr><tr><td align=center>Qt::AA_UseOpenGLES</td><td align=center>16</td><td align=center>Forces the usage of OpenGL ES 2.0 or higher on platforms that use dynamic loading of the OpenGL implementation. This attribute must be set before QGuiApplication is constructed. This value was added in Qt 5.3.</td></tr><tr><td align=center>Qt::AA_UseSoftwareOpenGL</td><td align=center>17</td><td align=center>Forces the usage of a software based OpenGL implementation on platforms that use dynamic loading of the OpenGL implementation. This will typically be a patched build of Mesa llvmpipe, providing OpenGL 2.1. The value may have no effect if no such OpenGL implementation is available. The default name of this library is opengl32sw.dll and can be overridden by setting the environment variable QT_OPENGL_DLL. See the platform-specific pages, for instance Qt for Windows, for more information. This attribute must be set before QGuiApplication is constructed. This value was added in Qt 5.4.</td></tr><tr><td align=center>Qt::AA_ShareOpenGLContexts</td><td align=center>18</td><td align=center>Enables resource sharing between the OpenGL contexts used by classes like QOpenGLWidget and QQuickWidget. This allows sharing OpenGL resources, like textures, between QOpenGLWidget instances that belong to different top-level windows. This attribute must be set before QGuiApplication is constructed. This value was added in Qt 5.4.</td></tr><tr><td align=center>Qt::AA_SetPalette</td><td align=center>19</td><td align=center>Indicates whether a palette was explicitly set on the QGuiApplication. This value was added in Qt 5.5.</td></tr><tr><td align=center>Qt::AA_EnableHighDpiScaling</td><td align=center>20</td><td align=center>Enables high-DPI scaling in Qt on supported platforms (see also High DPI Displays). Supported platforms are X11, Windows and Android. Enabling makes Qt scale the main (device independent) coordinate system according to display scale factors provided by the operating system. This corresponds to setting the QT_AUTO_SCREEN​_SCALE_FACTOR environment variable to 1. This attribute must be set before QGuiApplication is constructed. This value was added in Qt 5.6.</td></tr><tr><td align=center>Qt::AA_DisableHighDpiScaling</td><td align=center>21</td><td align=center>Disables high-DPI scaling in Qt, exposing window system coordinates. Note that the window system may do its own scaling, so this does not guarantee that QPaintDevice::devicePixelRatio() will be equal to 1. In addition, scale factors set by QT_SCALE_FACTOR will not be affected. This corresponds to setting the QT_AUTO_SCREEN​_SCALE_FACTOR environment variable to 0. This attribute must be set before QGuiApplication is constructed. This value was added in Qt 5.6.</td></tr><tr><td align=center>Qt::AA_UseStyleSheetPropagationInWidgetStyles</td><td align=center>22</td><td align=center>By default, Qt Style Sheets disable regular QWidget palette and font propagation. When this flag is enabled, font and palette changes propagate as though the user had manually called the corresponding QWidget methods. See The Style Sheet Syntax - Inheritance for more details. This value was added in Qt 5.7.</td></tr><tr><td align=center>Qt::AA_DontUseNativeDialogs</td><td align=center>23</td><td align=center>All dialogs created while this attribute is set to true won't use the native dialogs provided by the platform. This value was added in Qt 5.7.</td></tr><tr><td align=center>Qt::AA_SynthesizeMouseForUnhandledTabletEvents</td><td align=center>24</td><td align=center>All tablet events that are not accepted by the application will be translated to mouse events instead. This attribute is enabled by default. This value was added in Qt 5.7.</td></tr><tr><td align=center>Qt::AA_CompressHighFrequencyEvents</td><td align=center>25</td><td align=center>Enables compression of certain frequent events. On the X11 windowing system, the default value is true, which means that QEvent::MouseMove, QEvent::TouchUpdate, and changes in window size and position will be combined whenever they occur more frequently than the application handles them, so that they don't accumulate and overwhelm the application later. On Windows 8 and above the default value is also true, but it only applies to touch events. Mouse and window events remain unaffected by this flag. On other platforms, the default is false. (In the future, the compression feature may be implemented across platforms.) You can test the attribute to see whether compression is enabled. If your application needs to handle all events with no compression, you can unset this attribute. Notice that input events from tablet devices will not be compressed. See AA_CompressTabletEvents if you want these to be compressed as well. This value was added in Qt 5.7.</td></tr><tr><td align=center>Qt::AA_CompressTabletEvents</td><td align=center>29</td><td align=center>Enables compression of input events from tablet devices. Notice that AA_CompressHighFrequencyEvents must be true for events compression to be enabled, and that this flag extends the former to tablet events. Currently supported on the X11 windowing system, Windows 8 and above. The default value is false. This value was added in Qt 5.10.</td></tr><tr><td align=center>Qt::AA_DontCheckOpenGLContextThreadAffinity</td><td align=center>26</td><td align=center>When making a context current using QOpenGLContext, do not check that the QObject thread affinity of the QOpenGLContext object is the same thread calling makeCurrent(). This value was added in Qt 5.8.</td></tr><tr><td align=center>Qt::AA_DisableShaderDiskCache</td><td align=center>27</td><td align=center>Disables caching of shader program binaries on disk. By default Qt Quick, QPainter's OpenGL backend, and any application using QOpenGLShaderProgram with one of its addCacheableShaderFromSource overloads will employ a disk-based program binary cache in either the shared or per-process cache storage location, on systems that support glProgramBinary(). In the unlikely event of this being problematic, set this attribute to disable all disk-based caching of shaders.</td></tr><tr><td align=center>Qt::AA_DisableWindowContextHelpButton</td><td align=center>30</td><td align=center>Disables the WindowContextHelpButtonHint by default on Qt::Sheet and Qt::Dialog widgets. This hides the ? button on Windows, which only makes sense if you use QWhatsThis functionality. This value was added in Qt 5.10. In Qt 6, WindowContextHelpButtonHint will not be set by default.</td></tr><tr><td align=center>Qt::AA_DisableSessionManager</td><td align=center>31</td><td align=center>Disables the QSessionManager. By default Qt will connect to a running session manager for a GUI application on supported platforms, use of a session manager may be redundant for system services. This attribute must be set before QGuiApplication is constructed. This value was added in 5.14</td></tr><tr><td align=center>Qt::AA_DisableNativeVirtualKeyboard</td><td align=center>9</td><td align=center>When this attribute is set, the native on-screen virtual keyboard will not be shown automatically when a text input widget gains focus on a system without a physical keyboard. Currently supported on the Windows platform only. This value was added in 5.15</td></tr></table>
<tr><td>2</td><td>Qt::AA_DontShowIconsInMenus</td><td></td></tr>
+
 
<tr><td>28</td><td>Qt::AA_DontShowShortcutsInContextMenus</td><td></td></tr>
+
<tr><td>3</td><td>Qt::AA_NativeWindows</td><td></td></tr>
+
<tr><td>4</td><td>Qt::AA_DontCreateNativeWidgetSiblings</td><td></td></tr>
+
<tr><td>5</td><td>Qt::AA_PluginApplication</td><td></td></tr>
+
<tr><td>6</td><td>Qt::AA_DontUseNativeMenuBar</td><td></td></tr>
+
<tr><td>7</td><td>Qt::AA_MacDontSwapCtrlAndMeta</td><td></td></tr>
+
</table>
+
 
</ytmath>
 
</ytmath>
  

2021年2月19日 (金) 00:00時点における版



個人用ツール
名前空間

変種
操作
案内
ツールボックス