Answers for "Call db.close() on Button_Click (QT/C++)"

0

Call db.close() on Button_Click (QT/C++)

class Artikelverwaltung
{
  private:
    QSqlDatabase m_db;
};




Artikelverwaltung::Artikelverwaltung(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Artikelverwaltung)
{
  ...

    m_db = QSqlDatabase::addDatabase("QODBC");
...
}

void Artikelverwaltung::on_pushButton_clicked()
{
    m_db.close();
}
Posted by: Guest on May-09-2022

Browse Popular Code Answers by Language