
Learn how to build desktop apps with the Qt framework using C++, exploring widgets, signals and slots, dialog boxes, and main window design, plus reading documentation and prerequisites.
Create and configure a new Qt Creator project, set up a main.cpp, include the application class, and run the qmake build to launch a basic Qt application.
Add and display a push button in a Qt widget using the show function, set its caption with an overloaded constructor, build the app, and observe its resizable behavior.
Learn how accessors modify object properties in Qt by using get and set functions like setText and setToolTip to change a button's caption.
Discover how Qt uses an inheritance tree from the base object to widgets like push button and progress bar. Learn to reuse inherited functionality without reimplementing core components.
Learn to manage dynamic widgets in Qt with pointers, creating windows, buttons, and a progress bar, and assign parents and layouts to organize the window.
Learn to position widgets with the move and setGeometry functions in a Qt window, using x, y, width, and height, and understand why layouts are needed for resizing.
Explore how signals and slots in Qt connect objects to trigger actions, such as linking a button click to quit the application, using the connect method.
Declare a signal in the Qt header's signals section, emit it when the level becomes visible, and connect it to a slot to switch the window to full-screen mode.
Explore how to use Qt's QMessageBox to display six message types, including about, information, warning, critical, and question, with a title, text, and standard buttons in a non-modal dialog.
Learn to customize dialog boxes in Qt by using QMessageBox with yes/no options, handle user input as an int, and display an information message when the file is saved.
Learn to use QInputDialog to obtain various user inputs, including text, password, double, int, and item selections, with password echo mode and input feedback via message boxes.
Enable font customization by using QFontDialog to let the user pick a font, store it in a QFont object, and apply it to the level label.
Explore the Qt color dialog to choose colors, store them in a color object, and apply them to a label using the QPalette with window text and other color roles.
Explore how the Qt QFileDialog enables users to browse and select files or directories, with open and save operations, filtering to images, and using static helpers like get existing directory.
Replace absolute window positioning with Qt layouts, using vertical and horizontal layouts to create flexible interfaces. Demonstrate aligning three buttons using QVBoxLayout and QHBoxLayout and applying setLayout.
Learn to use Qt's QGridLayout to arrange widgets in a grid, placing items by row and column with spans, and see how the layout adapts when resizing the window.
Create a form with QFormLayout in Qt, adding rows for first name, last name, and age, and use addLayout in a vertical layout to place ok and cancel.
Explore how to use QWidget properties and functions, including enabled, cursor, visible, geometry, and window flags, and apply setEnabled, isEnabled, setVisible, setWindowFlags, and setWindowTitle to control a widget.
Create a QDialog widget for short tasks and user communication, and compare modal and non-modal dialogs. Set a fixed size, attach a push button, and open the dialog with show.
Q push button signals such as clicked, pressed, and released, and implement check boxes and radio buttons using vertical layouts and group boxes to organize user input.
Implement a fuel level class with a Qt progress bar and ladder; label content supports text, pixmap, movie, and progress bar properties include maximum, minimum, orientation, format, text visible, value.
Explore QLineEdit in Qt, a single-line editor with undo and redo, cut and paste, and properties such as text, echo mode, alignment, read-only, enabled, and input mask with a validator.
Explore how QSpinBox handles integers and floating point values with up and down controls, and how QComboBox provides a compact list with add item and relevant signals.
Explore two Qt containers, QFrame and QTabWidget, covering frame style, line width, and tab properties. Build a multi-page interface with QTabWidget and signals like current change and tab close requested.
Explore how to create a main window in a Qt application by building the menu bar, toolbars, dock widgets, center area, and status bar.
Explore central widgets in Qt by implementing SDI and MDI main windows, setting a central widget, and adding sub windows to create a flexible document interface.
Learn to add a file menu to a Qt window using the main menu bar, create actions with QAction, assign shortcuts, and attach them to the menu.
Create a Qt window tool bar, add the tool bar, configure new and exit actions with icons, and extend it with a font combo box and separators.
Explore Qt Designer in the Qt framework, choosing main window templates, adding a form class and widgets, and mastering signals, slots, and the property editor.
Design the main window with a vertical layout and spacers, connect a slider to the LCD display via signals and slots, and link the slider's value to the LCD number.
Design and code a Qt main window by wiring the UI to code, add a progress bar, set its value to 30, and connect a slider to the LCD display.
Qt Documentation:
http://doc.qt.io/
In this Course, we will change together the flow of your programming capacities. From the basic black and white applications (console) to the GUI or Graphic User Interface which every programmer is trying to master. of course this is your main purpose too as a programmer.
We will begin with the basics of GUI applications creation step by step to the complex concepts. Our course will contain the following materials:
I wish that the content of this course interests you, and i promise, at the end of it you will have a solid base in the Applications creation process which will allow you to create complex applications.
So if your are interested in my course please feel free to subscribe.