GCF LOGO VCL LOGO
GCF::GuiApplication Class Reference

Extends GCF::Application for GUI Applications. More...

#include <GCF3/GuiApplication>

Public Member Functions

 GuiApplication (int &argc, char **argv)
 
 ~GuiApplication ()
 
int processArgumentsAndExec (const QStringList &additionalArgs=QStringList())
 
- Public Member Functions inherited from GCF::ApplicationServices
QDateTime launchTimestamp () const
 
ObjectTreeobjectTree () const
 
QObject * findObject (const QString &path) const
 
void loadComponent (Component *component)
 
void unloadComponent (Component *component)
 
QObjectList components () const
 
void activateComponent (Component *component)
 
void deactivateComponent (Component *component)
 
bool isLoaded (const Component *component) const
 
bool isActive (const Component *component) const
 
void unloadAllComponents ()
 
ComponentinstantiateComponent (const QString &library)
 
ComponentloadComponent (const QString &library)
 
ComponentloadComponent (const QString &library, const QList< QPair< QByteArray, QVariant > > &properties)
 
QList< Component * > loadComponents (const QStringList &libraries)
 
QVariantMap argumentsMap () const
 
void processArguments (const QStringList &additionalArgs=QStringList())
 
GCF::Result invokeMethod (const QString &path, const QString &method, const QVariantList &args, bool secureCall=true) const
 This method can be used to invoke a named method in an object. More...
 
GCF::JobListModeljobs () const
 
QString translate (const QString &string) const
 

Additional Inherited Members

- Static Public Member Functions inherited from GCF::ApplicationServices
static GCF::Result invokeMethod (QObject *object, const QString &method, const QVariantList &args, bool secureCall=true)
 This method can be used to invoke a named method in an object. More...
 
static GCF::Result invokeMethod (QObject *object, const QMetaMethod &method, const QVariantList &args, bool secureCall=true)
 This method can be used to invoke a named method in an object. More...
 
- Protected Member Functions inherited from GCF::ApplicationServices
 ApplicationServices ()
 
virtual ~ApplicationServices ()
 

Detailed Description

GUI applications are those that are built using QApplication on Qt 4 and Qt 5. Specifically in Qt 5 this class should be used for creating a widgets-only GUI application.

The gApp macro would point to an instance of this class when the header file for this class is included.

Constructor & Destructor Documentation

GCF::GuiApplication::GuiApplication ( int &  argc,
char **  argv 
)

Constructor.

Parameters
argcreference to an integer that holds number of command-line arguments passed to the applicaiton.
argvpointer to an array of character strings that hold the command-line arguments.
GCF::GuiApplication::~GuiApplication ( )

Destructor

Member Function Documentation

void GCF::GuiApplication::processArgumentsAndExec ( const QStringList &  additionalArgs = QStringList())

Process all arguments from qApp->arguments() and additionalArgs and invokes QApplication::exec().

See Also
GCF::Application::processArgumentsAndExec()