Hello everybody,
QT:4.1.1
How could i get my parent Pointer?
I tryed this:
login.cpp
(MainWindow*)parent).insertTables();
(MainWindow*)parent).insertTables();
To copy to clipboard, switch view to plain text mode
ERROR:
login.
cpp:63: error
: argument of type `
QObject*(QObject::)() const' does not match `MainWindow*'
login.cpp:63: error: argument of type `QObject*(QObject::)() const' does not mat
ch `MainWindow*'
To copy to clipboard, switch view to plain text mode
I want to get the pointer to call a function of MainWindow. I open LoginDialog like this:
void MainWindow::openLoginDialog()
{
LoginDialog l(this);
l.exec();
}
void MainWindow::openLoginDialog()
{
LoginDialog l(this);
l.exec();
}
To copy to clipboard, switch view to plain text mode
Have somebody a idea how to get the Parent Pointer?
Bookmarks