|
gqtbuttonswidget
|
Minimal GUI example for the Qt Buttons Widgets module. More...
#include "gQtButtonsWidget_options.h"#include "gQtButtonsWidget.h"#include <QApplication>#include <QMainWindow>#include <QTimer>
Go to the source code of this file.
Functions | |
| int | main (int argc, char *argv[]) |
| Example entry point. | |
This example demonstrates:
--gui is enabledGQTButtonsWidget using Qt resource-based SVG iconsDefinition in file gqtbuttons_example.cc.
| int main | ( | int | argc, |
| char * | argv[] ) |
Behavior:
gui : whether to run with a Qt GUI.tt : timeout (milliseconds) after which the GUI exits automatically.gui is true:QApplication GQTButtonsWidget with two icon base namesQTimer::singleShot() to quit after tt millisecondsgui is false:| argc | Standard argument count. |
| argv | Standard argument vector. |
EXIT_SUCCESS on clean completion. Definition at line 53 of file gqtbuttons_example.cc.