![]() |
University of Murcia, Spain ![]() |
QVDefaultGUI Class ReferenceMain user interface widget for QVision applications.
More...
|
Public Member Functions | |
QVDefaultGUI (QWidget *parent=0) | |
Constructs a QVDefaultGUI object. |
This is the default graphical user interface class. It offers basic widgets to control several aspects of the execution of a QVision application. More specifically, this default GUI will show two separated tabbed toolbox widgets: one for workers, with a control button bar and a parameter inspector for each QVWorker object in the application, and another one for cameras, which also provides control and input/output information for each QVCameraWorker. The main widget has also a menu with typical Quit, Window and Help submenus. Particularly, the window submenu allows show/hide control of every window (QVImageCanvas, QVGLCanvas, and QVPlot ) created by the QVision application.
It is very easy to use this class: you simply must declare an instance of it in the main function of your application (after the QVApplication object declaration). Then, when the application enters its exec() method, this instance of QVDefautlGUI will detect all the involved workers, cameras, canvas and so on, and will automatically create the needed visual interface:
int main(int argc, char *argv[]) { QVApplication app(argc, argv, "An example application"); QVDefaultGUI interface; // Declaration and linking of workers, cameras, canvas, etc. of our application would be here... return app.exec(); }
This class is one of the implementations of the pure virtual base class QVGUI provided by the QVision framework. Maybe you are also interested in the QVDesignerGUI one.
Definition at line 61 of file qvdefaultgui.h.
QVDefaultGUI::QVDefaultGUI | ( | QWidget * | parent = 0 |
) |
Constructs a QVDefaultGUI object.
parent | (Optional) parent for the created widget |
Definition at line 39 of file qvdefaultgui.cpp.