I did check with this code in form povezava (povezava.ui.h):
bool ok = baza->open();
if (!ok
) {QMessageBox::warning (this,
"Pozor!!!!!!!!!!!",
"not working",
1,
0,
0);
} else {
QMessageBox::information ( this,
"Uspeh!!!!!!!!!",
"working",
1,
0,
0 );
close();
};
bool ok = baza->open();
if (!ok) {QMessageBox::warning (this, "Pozor!!!!!!!!!!!", "not working",1,0,0);}
else {
QMessageBox::information ( this, "Uspeh!!!!!!!!!", "working",1,0,0 );
close();
};
To copy to clipboard, switch view to plain text mode
And it certainly works.
But now I need to access it from a different form, from file glavnoo.ui.h.
Bookmarks