About 2,600,000 results
Open links in new tab
  1. What is the correct way of QSqlDatabase & QSqlQuery?

    QSqlDatabase and QSqlQuery are lightweight wrappers around concrete implementations, so your first example is fine. If you provide a name when adding the connection, or use the default database, …

  2. QSqlDatabase: QMYSQL driver not loaded - Qt Forum

    Jan 18, 2025 · QSqlDatabase: QMYSQL driver not loaded Unsolved General and Desktop 20 Posts 5 Posters 3.4k Views 2 Watching Oldest to Newest

  3. Correctly using QSqlDatabase in multi-threaded programs

    May 13, 2017 · The QSqlDatabase class represents a connection to a database. The QSqlDatabase class provides an interface for accessing a database through a connection. An instance of …

  4. QSqldatabase "correct" usage - Qt Forum

    Feb 14, 2025 · I've been using QSqlDatabase as a member of a class in many small programs that I develop for personal projects, like class DbManager { DbManager(); ...

  5. Как работать с QSqlDatabase пример ( QSqlDatabase example)

    Jan 9, 2023 · } QSqlDatabase::removeDatabase("NAME1"); } Это самый локаничный и правильный пример по использованию QSqlDatabase, он позволит вам делать даже несколько …

  6. c++ - Handling QSqlDatabase connections - Stack Overflow

    Aug 25, 2014 · What is the correct way to handle connections for QSqlDatabase? In my program I am doing it this way:

  7. How to solve "QSqlDatabase: QMYSQL driver not loaded"

    I'm trying to create a Qt interface to connect to a MySQL database but it's giving me an error: QSqlDatabase: QMYSQL driver not loaded QSqlDatabase: available drivers: QSQLITE QODBC …

  8. QSqlDatabase: How to avoid 'qt_sql_default_connection' still in use ...

    Mar 17, 2019 · If you need to access an existing QSqlDatabase, it should be accessed with database (). If you chose to have a QSqlDatabase member variable, this needs to be deleted before the …

  9. python - como resolver el error: "qt.sql.qsqldatabase: QSqlDatabase ...

    Jan 12, 2025 · Estoy intentando conectar un script de python con mi servidor local postgresql: from PyQt6 import QtCore, QtGui, QtWidgets from PyQt6.QtSql import QSqlDatabase, QSqlQuery class …

  10. QSqlDatabase: QMYSQL driver not loaded - Qt Forum

    Jan 27, 2020 · link text After following above link and building sqldrivers (visual studio 2019, Qt 5.14.0), I am still getting this error, QSqlDatabase: QMYSQL driver not ...