Title: Qt%20Designer
1Qt Designer
- ????sta??? ???sta?t????
- ?.? 739
- kostazz_at_hotmail.com
2??sa????
- ?? Qt Designer e??a? e?a e??a?e?? ??a ?atas?e??
GUI efa?µ???? p?? ap?te????ta? ap? Qt widgets. - ?p?t??pe? t?? s?ed?asµ? widgets ?a? dialogs
???s?µ?p????ta? ta signals ?a? slots t?? Qt.
3?as??? ?a??????
4Main Window
- ? G?aµµ? e??a?e??? pa???e? ??e? t?? s?????sµ??e?
e????e?e? ??a t?? d?a?e???s? t?? f??µ??, t??
clipboard ?a? t?? ß???e?a?. - ? toolbar pa???e? t?? s?????sµ??e? e????e?e? ?ta?
d?aµ??f???µa? t?? f??µe?.
5Toolbox
?? toolbox pa???e? µ?a s?????? ap? Qt widgets,
layouts ?a? ????? a?t??e?µ???? p?? µp????µe ?a
???s?µ?p???s??µe ??a ?a ft?a???µe f??µe?.
6Toolbox
?? toolbox pa???e? µ?a s?????? ap? Qt widgets,
layouts ?a? ????? a?t??e?µ???? p?? µp????µe ?a
???s?µ?p???s??µe ??a ?a ft?a???µe f??µe?.
7Toolbox
?? toolbox pa???e? µ?a s?????? ap? Qt widgets,
layouts ?a? ????? a?t??e?µ???? p?? µp????µe ?a
???s?µ?p???s??µe ??a ?a ft?a???µe f??µe?.
8Toolbox
?? toolbox pa???e? µ?a s?????? ap? Qt widgets,
layouts ?a? ????? a?t??e?µ???? p?? µp????µe ?a
???s?µ?p???s??µe ??a ?a ft?a???µe f??µe?.
9Toolbox
?? toolbox pa???e? µ?a s?????? ap? Qt widgets,
layouts ?a? ????? a?t??e?µ???? p?? µp????µe ?a
???s?µ?p???s??µe ??a ?a ft?a???µe f??µe?.
10Toolbox
?? toolbox pa???e? µ?a s?????? ap? Qt widgets,
layouts ?a? ????? a?t??e?µ???? p?? µp????µe ?a
???s?µ?p???s??µe ??a ?a ft?a???µe f??µe?.
11Form Editor
- ???p??µe t?? d??ta?? t?? widgets st?? f??µa µa?
?a? ta d??f??a layouts.
12Form Editor
- ???p??µe t?? d??ta?? t?? widgets st?? f??µa µa?
?a? ta d??f??a layouts.
13Project Overview
- St? pa?????? a?t? ß??p??µe ta a??e?a ?a? t??
f??µe? p?? ap?te???? t? project µa?.
14Property Editor
- ??e? ?? pa?aµet??p???s?µe? ?d??t?te? t?? widgets
µp????? ?a d?aµ??f????? ap? t?? property editor.
15Property Editor
- ??e? ?? pa?aµet??p???s?µe? ?d??t?te? t?? widgets
µp????? ?a d?aµ??f????? ap? t?? property editor.
16Connections Editor
17Signals and Slots
18?a??de??µa
19?a??de??µa
- Ft??????µe µ?a ap?? f??µa p?? pe????e? 2 spinBox,
??a lineEdit ?a? µe???? textLabels. - ? Qt Designer pa???e? ??a a??e?? calculatorForm.ui
20calculatorForm.h
- ifndef CALCULATORFORM_H
- define CALCULATORFORM_H
- include "ui_calculatorform.h"
- class CalculatorForm public Qwidget
-
- Q_OBJECT
- public CalculatorForm(QWidget parent 0)
- private slots
- void on_inputSpinBox1_valueChanged(int value)
- void on_inputSpinBox2_valueChanged(int value)
- private
- UiCalculatorForm ui
-
- endif
21calculatorForm.cpp
- include ltQtGuigt
- include "calculatorform.h
- CalculatorFormCalculatorForm(QWidget parent)
QWidget(parent) -
- ui.setupUi(this)
-
- void CalculatorFormon_inputSpinBox1_valueChange
d(int value) - ui.outputWidget-gtsetText(QStringnumber(value
ui.inputSpinBox2-gtvalue())) -
- void CalculatorFormon_inputSpinBox2_valueChange
d(int value) - ui.outputWidget-gtsetText(QStringnumber(value
ui.inputSpinBox1-gtvalue()))
22main.cpp
- include ltQApplicationgt
- include "calculatorform.h"
- int main(int argc, char argv)
-
- QApplication app(argc, argv)
- CalculatorForm calculator
- calculator.show()
- return app.exec()