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();
}
Code Example |
---|
Cpp :: Overloading IO Stream |
Cpp :: c++ login |
Cpp :: compile c++ MPI Program |
Cpp :: executing linux scripts |
Cpp :: online computer graphics compiler c++ |
Cpp :: how to declare a function in c++ header file |
Cpp :: how to initialize a vector in c++ |
Cpp :: c++ string to vector int |
Cpp :: c++ if else if |
Cpp :: cpp map contains |
Cpp :: conditions in c++ |
Cpp :: transform cpp |
Cpp :: void pointer c++ |
Cpp :: uses of c++ |
Cpp :: print all even number using for loop c++ |
Cpp :: c++ short hand if else |
C :: csrf_exempt |
C :: rename c |
C :: write in file in c |
C :: random number in c |
C :: line counter in c |
C :: prime numbers c |
C :: add 2 numbers in c |
C :: c language append line to file |
C :: bootstrap 5 image responsive |
C :: write a binary file c |
C :: how make a character in c scanf |
C :: int_min in c |
C :: sleep function in c |
C :: struct main function c in unix |