Presentation is loading. Please wait.

Presentation is loading. Please wait.

Today (or Thursday) Qt Thursday Quiz SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1 SE3910 Week 6, Lab.

Similar presentations


Presentation on theme: "Today (or Thursday) Qt Thursday Quiz SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1 SE3910 Week 6, Lab."— Presentation transcript:

1 Today (or Thursday) Qt Thursday Quiz SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1 SE3910 Week 6, Lab

2 GUI Toolkits Java AWT Swing SWT Java FX C# WPF Windows Forms Silverlight GTK# C/C++ Qt FLTK GTK Motif MFC SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 2

3 What makes a good toolkit? SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 3

4 Qt Features Fully object-oriented Consistent interfaces Rich set of widgets (controls) Have native look and feel Drag and drop Customizable appearance Utility classes OpenGL support Network support Database support Plugin support Unicode/Internationali zation support GUI builder SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 4

5 Qt Widgets Java Swing Qt SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 5

6 Example QT Widgets SE3910 Real Time Systems

7 QT Built in Dialog Boxes File dialog Font dialog Color dialog Printer dialog SE3910 Real Time Systems

8 Layouts Java FlowLayout GridLayout BorderLayout BoxLayout Qt FlowLayout (ex) QGridLayout BorderLayout (ex) QHBoxLayout QVBoxLayout SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 8

9 Layouts in Java and Qt Layouts in Java (in JFrame) setLayout(layout) add(button) Layouts in Qt (in QMainWindow) layout->add(button) widget->setLayout(layout) setCentralWidget(widget) SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 9

10 Events/Signals Java Event E.g. ActionEvent Event Listener E.g. ActionListener How does Java initiate an event? Qt Signal E.g. clicked() Slot E.g. on_pushButton_clicked emit SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 10

11 Custom Events in Java How do you register an event with an event source in Java? How do you create your own event in Java? How do you fire an event in java? SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 11

12 Custom Events in QT How do you register an event with an event source in QT? connect(button, SIGNAL(clicked()), qApp, SLOT(quit())); How do you create your own event in QT? signals: void clicked(); How do you fire an event in QT? emit progressNotification(1000 * seconds); SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 12

13 Qt command-line tools… moc – Program to convert.h files to moc_....cpp files [You don’t need to run this directly] qmake - Program that automatically creates a makefile to run moc and gcc at the correct time make – Program that reads makefile and runs all correct programs as needed 13

14 Quiz practice: Analog to digital bandwidth SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 14

15 Quiz Practice: C/C++ Circle the link-time errors. Box the compile- time syntax error point.m:40: error: ‘mypoint’ undeclared (first use in this function) collect2: ld returned 1 exit status /usr/lib/crt1.o(.text+0x18): undefined reference to `main ' parse error before `...‘ undefined reference to `filterText' warning: implicit declaration of function `...' SE-2811 Dr.Yoder 15

16 Other Quiz Subjects Creating a signal from sine waves Frequency content of a signal Analog bandwidth Stroboscopic effect Why some cables can carry more data than others Even more outcomes on outcomes page, if desired SE-2811 Dr.Yoder 16

17 Muddiest Point Wait for the slides, or follow this link to answer both questions at once: http://bit.ly/1Mow5a3 SE-2811 Dr.Yoder 17

18 Muddiest Point Wait for the slides, or follow this link to answer both questions at once: http://bit.ly/1Mow5a3 SE-2811 Dr.Yoder 18

19 SE-2811 Dr. Josiah Yoder 19 http://bit.ly/1Mow5a3

20 SE-2811 Dr. Josiah Yoder 20 http://bit.ly/1Mow5a3

21 References EB: Derek Malloy, Exploring Beaglebone, Wiley, 2015 http://www.linuxtopia.org/online_books/an_intro duction_to_gcc/gccintro_95.html http://www.network- theory.co.uk/docs/gccintro/gccintro_95.html http://stackoverflow.com/questions/5645387/gc c-compile-errors-in-an-basic-example-objc- program http://www.linuxtopia.org/online_books/an_intro duction_to_gcc/gccintro_94.html SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 21


Download ppt "Today (or Thursday) Qt Thursday Quiz SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1 SE3910 Week 6, Lab."

Similar presentations


Ads by Google