TDesignerBasicGui.h
Go to the documentation of this file.
1 #ifndef iqtgui_TDesignerBasicGui_included
2 #define iqtgui_TDesignerBasicGui_included
3 
4 
5 // Qt includes
6 #include <QtCore/QMetaObject>
7 
8 // ACF includes
10 
11 
12 namespace iqtgui
13 {
14 
15 
19 template <class UI, class WidgetType = QDialog>
20 class TDesignerBasicGui: public WidgetType, public UI
21 {
22 public:
23  typedef WidgetType BaseClass;
24 
25  TDesignerBasicGui(QWidget* parentPtr = 0, Qt::WindowFlags f = 0);
26 };
27 
28 
29 // public methods
30 
31 // reimplemented (iqtgui::CGuiComponentBase)
32 
33 template <class UI, class WidgetType>
34 TDesignerBasicGui<UI, WidgetType>::TDesignerBasicGui(QWidget* parentPtr, Qt::WindowFlags f)
35 : BaseClass(parentPtr, f)
36 {
37  UI::setupUi(this);
38 }
39 
40 
41 } // namespace iqtgui
42 
43 
44 #endif // !iqtgui_TDesignerBasicGui_included
45 
46 
Simple integration of designer-generated GUI with QT widget class.
TDesignerBasicGui(QWidget *parentPtr=0, Qt::WindowFlags f=0)

© 2007-2017 Witold Gantzke and Kirill Lepskiy