![]() It manages the application's mouse cursor handling, see setOverrideCursor().You can ask which widget is at a certain position using widgetAt(), get a list of topLevelWidgets() and closeAllWindows(), etc. It knows about the application's windows.It provides some magical objects like the clipboard().It provides localization of strings that are visible to the user via translate(). ![]() This can be changed at runtime with setStyle(). It defines the application's look and feel, which is encapsulated in a QStyle object.See the constructor documentation below for more details. It parses common command line arguments and sets its internal state accordingly.By using sendEvent() and postEvent() you can send your own events to widgets. It performs event handling, meaning that it receives events from the underlying window system and dispatches them to the relevant widgets.It keeps track of these properties in case the user changes the desktop globally, for example through some kind of control panel. It initializes the application with the user's desktop settings such as palette(), font() and doubleClickInterval().QApplication's main areas of responsibility are: The QApplication object is accessible through the instance() function that returns a pointer equivalent to the global qApp pointer. ![]() QCoreApplication * createApplication( int &argc, char *argv )įor ( int i = 1 i app(createApplication(argc, argv)) SetPalette(const QPalette & palette, const char * className = nullptr) SetNavigationMode(Qt::NavigationMode mode) SetFont(const QFont & font, const char * className = nullptr) SetEffectEnabled(Qt::UIEffect effect, bool enable = true)
0 Comments
Leave a Reply. |