QtBase  v6.3.1
Public Member Functions | List of all members
TestApplication Class Reference
Inheritance diagram for TestApplication:
Inheritance graph
[legend]
Collaboration diagram for TestApplication:
Collaboration graph
[legend]

Public Member Functions

 TestApplication (int &argc, char **argv)
 
void timerEvent (QTimerEvent *) override
 
- Public Member Functions inherited from QApplication
 QApplication (int &argc, char **argv, int=ApplicationFlags)
 
virtual ~QApplication ()
 
bool notify (QObject *, QEvent *) override
 
QString styleSheet () const
 
- Public Member Functions inherited from QGuiApplication
 QGuiApplication (int &argc, char **argv, int=ApplicationFlags)
 
 ~QGuiApplication ()
 
qreal devicePixelRatio () const
 
bool isSessionRestored () const
 
QString sessionId () const
 
QString sessionKey () const
 
bool isSavingSession () const
 
- Public Member Functions inherited from QCoreApplication
 QCoreApplication (int &argc, char **argv, int=ApplicationFlags)
 
 ~QCoreApplication ()
 
void installNativeEventFilter (QAbstractNativeEventFilter *filterObj)
 
void removeNativeEventFilter (QAbstractNativeEventFilter *filterObj)
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=nullptr)
 
virtual ~QObject ()
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
QBindable< QStringbindableObjectName ()
 
bool isWidgetType () const
 
bool isWindowType () const
 
bool signalsBlocked () const noexcept
 
bool blockSignals (bool b) noexcept
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 
void killTimer (int id)
 
template<typename T >
T findChild (const QString &aName=QString(), Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
template<typename T >
QList< TfindChildren (const QString &aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
template<typename T >
QList< TfindChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
const QObjectListchildren () const
 
void setParent (QObject *parent)
 
void installEventFilter (QObject *filterObj)
 
void removeEventFilter (QObject *obj)
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const
 
bool disconnect (const QObject *receiver, const char *member=nullptr) const
 
void dumpObjectTree () const
 
void dumpObjectInfo () const
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
QBindingStoragebindingStorage ()
 
const QBindingStoragebindingStorage () const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 

Additional Inherited Members

- Public Types inherited from QCoreApplication
enum  { ApplicationFlags = QT_VERSION }
 
- Public Slots inherited from QApplication
void setStyleSheet (const QString &sheet)
 
void setAutoSipEnabled (const bool enabled)
 
bool autoSipEnabled () const
 
static void closeAllWindows ()
 
static void aboutQt ()
 
- Public Slots inherited from QCoreApplication
static void quit ()
 
static void exit (int retcode=0)
 
- Public Slots inherited from QObject
void deleteLater ()
 
- Signals inherited from QApplication
void focusChanged (QWidget *old, QWidget *now)
 
- Signals inherited from QGuiApplication
void fontDatabaseChanged ()
 
void screenAdded (QScreen *screen)
 
void screenRemoved (QScreen *screen)
 
void primaryScreenChanged (QScreen *screen)
 
void lastWindowClosed ()
 
void focusObjectChanged (QObject *focusObject)
 
void focusWindowChanged (QWindow *focusWindow)
 
void applicationStateChanged (Qt::ApplicationState state)
 
void layoutDirectionChanged (Qt::LayoutDirection direction)
 
void commitDataRequest (QSessionManager &sessionManager)
 
void saveStateRequest (QSessionManager &sessionManager)
 
void applicationDisplayNameChanged ()
 
- Signals inherited from QCoreApplication
void aboutToQuit (QPrivateSignal)
 
void organizationNameChanged ()
 
void organizationDomainChanged ()
 
void applicationNameChanged ()
 
void applicationVersionChanged ()
 
- Signals inherited from QObject
void destroyed (QObject *=nullptr)
 
void objectNameChanged (const QString &objectName, QPrivateSignal)
 
- Static Public Member Functions inherited from QApplication
static QStylestyle ()
 
static void setStyle (QStyle *)
 
static QStylesetStyle (const QString &)
 
static QPalette palette (const QWidget *)
 
static QPalette palette (const char *className)
 
static void setPalette (const QPalette &, const char *className=nullptr)
 
static QFont font ()
 
static QFont font (const QWidget *)
 
static QFont font (const char *className)
 
static void setFont (const QFont &, const char *className=nullptr)
 
static QWidgetList allWidgets ()
 
static QWidgetList topLevelWidgets ()
 
static QWidgetactivePopupWidget ()
 
static QWidgetactiveModalWidget ()
 
static QWidgetfocusWidget ()
 
static QWidgetactiveWindow ()
 
static void setActiveWindow (QWidget *act)
 
static QWidgetwidgetAt (const QPoint &p)
 
static QWidgetwidgetAt (int x, int y)
 
static QWidgettopLevelAt (const QPoint &p)
 
static QWidgettopLevelAt (int x, int y)
 
static void beep ()
 
static void alert (QWidget *widget, int duration=0)
 
static void setCursorFlashTime (int)
 
static int cursorFlashTime ()
 
static void setDoubleClickInterval (int)
 
static int doubleClickInterval ()
 
static void setKeyboardInputInterval (int)
 
static int keyboardInputInterval ()
 
static void setStartDragTime (int ms)
 
static int startDragTime ()
 
static void setStartDragDistance (int l)
 
static int startDragDistance ()
 
static bool isEffectEnabled (Qt::UIEffect)
 
static void setEffectEnabled (Qt::UIEffect, bool enable=true)
 
static int exec ()
 
static QPalette palette ()
 
- Static Public Member Functions inherited from QGuiApplication
static void setApplicationDisplayName (const QString &name)
 
static QString applicationDisplayName ()
 
static void setDesktopFileName (const QString &name)
 
static QString desktopFileName ()
 
static QWindowList allWindows ()
 
static QWindowList topLevelWindows ()
 
static QWindowtopLevelAt (const QPoint &pos)
 
static void setWindowIcon (const QIcon &icon)
 
static QIcon windowIcon ()
 
static QString platformName ()
 
static QWindowmodalWindow ()
 
static QWindowfocusWindow ()
 
static QObjectfocusObject ()
 
static QScreenprimaryScreen ()
 
static QList< QScreen * > screens ()
 
static QScreenscreenAt (const QPoint &point)
 
static QCursoroverrideCursor ()
 
static void setOverrideCursor (const QCursor &)
 
static void changeOverrideCursor (const QCursor &)
 
static void restoreOverrideCursor ()
 
static QFont font ()
 
static void setFont (const QFont &)
 
static QClipboardclipboard ()
 
static QPalette palette ()
 
static void setPalette (const QPalette &pal)
 
static Qt::KeyboardModifiers keyboardModifiers ()
 
static Qt::KeyboardModifiers queryKeyboardModifiers ()
 
static Qt::MouseButtons mouseButtons ()
 
static void setLayoutDirection (Qt::LayoutDirection direction)
 
static Qt::LayoutDirection layoutDirection ()
 
static bool isRightToLeft ()
 
static bool isLeftToRight ()
 
static QStyleHintsstyleHints ()
 
static void setDesktopSettingsAware (bool on)
 
static bool desktopSettingsAware ()
 
static QInputMethodinputMethod ()
 
static QPlatformNativeInterfaceplatformNativeInterface ()
 
static QFunctionPointer platformFunction (const QByteArray &function)
 
static void setQuitOnLastWindowClosed (bool quit)
 
static bool quitOnLastWindowClosed ()
 
static Qt::ApplicationState applicationState ()
 
static void setHighDpiScaleFactorRoundingPolicy (Qt::HighDpiScaleFactorRoundingPolicy policy)
 
static Qt::HighDpiScaleFactorRoundingPolicy highDpiScaleFactorRoundingPolicy ()
 
static int exec ()
 
static void sync ()
 
- Static Public Member Functions inherited from QCoreApplication
static QStringList arguments ()
 
static void setAttribute (Qt::ApplicationAttribute attribute, bool on=true)
 [95] More...
 
static bool testAttribute (Qt::ApplicationAttribute attribute)
 
static void setOrganizationDomain (const QString &orgDomain)
 
static QString organizationDomain ()
 
static void setOrganizationName (const QString &orgName)
 [11] More...
 
static QString organizationName ()
 
static void setApplicationName (const QString &application)
 
static QString applicationName ()
 
static void setApplicationVersion (const QString &version)
 
static QString applicationVersion ()
 
static void setSetuidAllowed (bool allow)
 
static bool isSetuidAllowed ()
 
static QCoreApplicationinstance ()
 
static int exec ()
 
static void processEvents (QEventLoop::ProcessEventsFlags flags=QEventLoop::AllEvents)
 
static void processEvents (QEventLoop::ProcessEventsFlags flags, int maxtime)
 
static bool sendEvent (QObject *receiver, QEvent *event)
 
static void postEvent (QObject *receiver, QEvent *event, int priority=Qt::NormalEventPriority)
 
static void sendPostedEvents (QObject *receiver=nullptr, int event_type=0)
 
static void removePostedEvents (QObject *receiver, int eventType=0)
 
static QAbstractEventDispatchereventDispatcher ()
 
static void setEventDispatcher (QAbstractEventDispatcher *eventDispatcher)
 
static bool startingUp ()
 
static bool closingDown ()
 
static QString applicationDirPath ()
 
static QString applicationFilePath ()
 
static qint64 applicationPid () Q_DECL_CONST_FUNCTION
 
static bool installTranslator (QTranslator *messageFile)
 
static bool removeTranslator (QTranslator *messageFile)
 
static QString translate (const char *context, const char *key, const char *disambiguation=nullptr, int n=-1)
 
static bool isQuitLockEnabled ()
 
static void setQuitLockEnabled (bool enabled)
 
- Static Public Member Functions inherited from QObject
static QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
static QMetaObject::Connection ::type connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 slot)
 
static QMetaObject::Connection ::type connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *context, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static std::enable_if< QtPrivate::FunctionPointer< Func2 >::ArgumentCount==-1 &&!std::is_convertible_v< Func2, const char * >, QMetaObject::Connection >::type connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 slot)
 
template<typename Func1 , typename Func2 >
static std::enable_if< QtPrivate::FunctionPointer< Func2 >::ArgumentCount==-1 &&!std::is_convertible_v< Func2, const char * >, QMetaObject::Connection >::type connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *context, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static bool disconnect (const QMetaObject::Connection &)
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot)
 
template<typename Func1 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero)
 
- Protected Member Functions inherited from QApplication
bool event (QEvent *) override
 
bool compressEvent (QEvent *, QObject *receiver, QPostEventList *) override
 
- Protected Member Functions inherited from QGuiApplication
 QGuiApplication (QGuiApplicationPrivate &p)
 
- Protected Member Functions inherited from QCoreApplication
 QCoreApplication (QCoreApplicationPrivate &p)
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
bool isSignalConnected (const QMetaMethod &signal) const
 
virtual void childEvent (QChildEvent *event)
 
virtual void customEvent (QEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=nullptr)
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Properties inherited from QApplication
int cursorFlashTime
 the text cursor's flash (blink) time in milliseconds More...
 
int doubleClickInterval
 the time limit in milliseconds that distinguishes a double click from two consecutive mouse clicks More...
 
int keyboardInputInterval
 the time limit in milliseconds that distinguishes a key press from two consecutive key presses More...
 
int startDragTime
 the time in milliseconds that a mouse button must be held down before a drag and drop operation will begin More...
 
int startDragDistance
 the minimum distance required for a drag and drop operation to start. More...
 
QString styleSheet
 the application style sheet More...
 
bool autoSipEnabled
 toggles automatic SIP (software input panel) visibility More...
 
- Properties inherited from QGuiApplication
QIcon windowIcon
 the default window icon More...
 
QString applicationDisplayName
 the user-visible name of this application More...
 
QString desktopFileName
 the base name of the desktop entry for this application More...
 
Qt::LayoutDirection layoutDirection
 the default layout direction for this application More...
 
QString platformName
 The name of the underlying platform plugin. More...
 
bool quitOnLastWindowClosed
 whether the application implicitly quits when the last window is closed. More...
 
QScreenprimaryScreen
 the primary (or default) screen of the application. More...
 
- Properties inherited from QCoreApplication
QString applicationName
 the name of this application More...
 
QString applicationVersion
 the version of this application More...
 
QString organizationName
 the name of the organization that wrote this application More...
 
QString organizationDomain
 the Internet domain of the organization that wrote this application More...
 
bool quitLockEnabled
 Whether the use of the QEventLoopLocker feature can cause the application to quit. More...
 
- Properties inherited from QObject
QString objectName
 the name of this object More...
 

Detailed Description

Definition at line 282 of file tst_qapplication.cpp.

Constructor & Destructor Documentation

◆ TestApplication()

TestApplication::TestApplication ( int &  argc,
char **  argv 
)
inline

Definition at line 285 of file tst_qapplication.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ timerEvent()

void TestApplication::timerEvent ( QTimerEvent event)
inlineoverridevirtual

This event handler can be reimplemented in a subclass to receive timer events for the object.

QTimer provides a higher-level interface to the timer functionality, and also more general information about timers. The timer event is passed in the event parameter.

See also
startTimer(), killTimer(), event()

Reimplemented from QObject.

Definition at line 290 of file tst_qapplication.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following file: