Qt%20Designer - PowerPoint PPT Presentation

About This Presentation
Title:

Qt%20Designer

Description:

. 739 kostazz_at_hotmail.com Qt Designer GUI ... – PowerPoint PPT presentation

Number of Views:68
Avg rating:3.0/5.0
Slides: 23
Provided by: Thio6
Category:
Tags: 20designer

less

Transcript and Presenter's Notes

Title: Qt%20Designer


1
Qt 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??????
4
Main 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?.

5
Toolbox
?? 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?.
6
Toolbox
?? 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?.
7
Toolbox
?? 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?.
8
Toolbox
?? 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?.
9
Toolbox
?? 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?.
10
Toolbox
?? 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?.
11
Form Editor
  • ???p??µe t?? d??ta?? t?? widgets st?? f??µa µa?
    ?a? ta d??f??a layouts.

12
Form Editor
  • ???p??µe t?? d??ta?? t?? widgets st?? f??µa µa?
    ?a? ta d??f??a layouts.

13
Project Overview
  • St? pa?????? a?t? ß??p??µe ta a??e?a ?a? t??
    f??µe? p?? ap?te???? t? project µa?.

14
Property Editor
  • ??e? ?? pa?aµet??p???s?µe? ?d??t?te? t?? widgets
    µp????? ?a d?aµ??f????? ap? t?? property editor.

15
Property Editor
  • ??e? ?? pa?aµet??p???s?µe? ?d??t?te? t?? widgets
    µp????? ?a d?aµ??f????? ap? t?? property editor.

16
Connections Editor
17
Signals and Slots
18
?a??de??µa
  • ?p??????µe File -gt New

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

20
calculatorForm.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

21
calculatorForm.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()))

22
main.cpp
  • include ltQApplicationgt
  • include "calculatorform.h"
  • int main(int argc, char argv)
  • QApplication app(argc, argv)
  • CalculatorForm calculator
  • calculator.show()
  • return app.exec()
Write a Comment
User Comments (0)
About PowerShow.com