Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
C++, Qt Creator, Sqlite database - intermediate level course
Rating: 3.7 out of 5(10 ratings)
57 students

C++, Qt Creator, Sqlite database - intermediate level course

C++ Desktop Application with Qt Creator and Sqlite database, intermediate level course
Created byAlaa Eid
Last updated 5/2023
English

What you'll learn

  • You will learn how to program desktop application using C++ and Qt Creator development environment and Sqlite database
  • You will learn how to use Qt Creator to create professional layouts
  • You will learn how to access and program the created layouts
  • You will learn how to work with Qt Creator and Sqlite Database

Course content

6 sections154 lectures13h 57m total length
  • Download and install the Qt Creator development environment3:59

    Download Qt Creator from the site, run the online installer, sign in or create an account, select Qt 6.5, install, finish, and pin Qt Creator to the taskbar.

  • Download and DB Browser for Sqlite1:42

    Download and install the SQLite database browser using the standard 64-bit Windows installer. Find the program in the folder, open the bin, and pin the SQLite browser to the taskbar.

  • Create Course Project2:15

    Create the course project in Qt Creator by selecting a widgets application and naming it my_course. Copy icons and pictures from the course material into the project folder.

  • Project configuration4:37

    Create a resource file and a resources/pictures folder for icons and pictures, add a prefix, keep the first slash, and disable the terminal when running.

  • Finish Project configuration2:04

    Configure the Qt Creator project with a .pro file for SQL database, define slots and variables in the header, and design the layout in the UI file.

  • Create Database1:13

    Learn to create a sqlite database in a qt creator project by selecting new database, saving it in the project folder, and verifying the database file.

  • MainWindow Layout7:23

    Design a main window layout in Qt Creator by setting width 1115 and height 900, configuring the window title and icon, and adding centered description and picture labels.

  • Create Database Connection4:59

    Learn to establish a sqlite database connection in the app constructor using QSqlDatabase, set the database name to the project database path, and log success or error with qDebug.

  • Image Animation Part - 14:11

    Learn to animate a picture in the main window using cue timer, with five timer instances and corresponding slots declared in the header.

  • Public Or Private Variablen and Slots2:36

    Examine public, private, and protected slots and pointer variables in the header, and learn how private members are accessible in your CBB file without getters or setters.

  • Create Image Animation Part - 29:07

    Define slots in the main window, connect a timer’s timeout signal to a slot, and display Lamborghini.jpg in a label on startup using setPixmap with proper sizing.

  • Finish Create Image Animation8:27

    Set up and manage multiple timers to sequentially display different images in a label, starting after 3 seconds, 6 seconds, 9 seconds, and 12,000 seconds, and stopping previous timers accordingly.

  • Create Click Function For MenuItem and Icon Add New Vehicle6:48

    Create a click function for the menu item and toolbar icon to close the main window and show the add new vehicle window using a new class in Qt Creator.

Requirements

  • This course is suitable for programmers with C++ programming experience.
  • Basic programming knowledge and C++ programming knowledge are required!

Description

Desktop application program with C++, Qt Creator and Sqlite database for  intermediate level users

In this project, we will create a management application for a car dealership.

It shows how vehicles, customers and car salespeople are managed and how deals are made. The sales made are recorded and shown in statistics. An independent executable file is then created.

We will create our layout with Qt Creator and work with the Sqlite database.

You will learn:

1- How to work with Qt Creator development environment (e.g. creating widgets, programming code)

2- How to work with Sqlite database and Qt Creator development environment. Regarding Sqlite database, the functions required for the project are explained. Please note that no detailed database course can be offered here.

3- How to create a professional layout with Qt Creator

4- How to create tables in your database. You will learn how to save, update, delete and query the data. Statistics are also generated from the data.

From the application we will create an executable exe file.

Everything you need for this course: Good programming skills with C++, for example to work routinely with classes, methods, variables and loops.

This course is not suitable for beginners without programming knowledge.

We focus on querying databases, inserting, updating and deleting data, uploading and saving images in your application and you will learn how to create statistics.

To do this, we generate data records from the database and also display them in a table or combo box.

After completing this course you will be able to create your own professional application. Everything is explained line by line.

At the end of our course, I'll show you how to create an executable independent of Qt Creator and your computer. You will also learn how to use Qt Creator to develop professional user interfaces, create menus and tables, combo boxes, buttons, labels and line edit. Everything is explained step by step. You will also learn how to set and change the layout with text and background colors and much more.

Let us begin! I would be very happy to welcome you as a course participant today!

Who this course is for:

  • The course is ideal for C++ programmers who want to develop professional desktop applications using the Qt Creator development environment.