Important: Please read the Qt Code of Conduct -

Few Questions from beginner

  • This post is deleted!

  • HI and welcome to devnet,

    1. You can handle database connections using QSqlDatabase class and the whole QtSql module;
    2. Do you want to make queries on DB or something else?

    WHat is your C++ knownledge??

  • @mcosta
    My C++ knowledge is rather good. I know a lot about classess, object-oriented programming.
    Btw I dont know what i am gonna need according to database. I have never done any database, just know basics queries. But as I said, I want to use database to put my Schedule in it for every day in week and each day filter just the hours with classes.
    Thanks for responding.

  • So,

    your question is not about Qt but about Databases. Probably the wrong forum :D

  • Since you talked about QML I will assume that you work with embedded devices so SQLite is probably the database for you.
    Here is an example of how to connect to a database, hope this helps:

    QSqlDatabase db = QSqlDatabase::addDatabase("SQLITE");
    db.setDatabaseName("path/to/database.db");; //This will create the database if it doesent exist

    Make sure to include

    #include <QSqlDatabase>

    Also add

    QT += sql

    To your project file