Hello everybody,

QT:4.1.1

How could i get my parent Pointer?

I tryed this:
login.cpp
Qt Code:
  1. (MainWindow*)parent).insertTables();
To copy to clipboard, switch view to plain text mode 

ERROR:
Qt Code:
  1. login.cpp:63: error: argument of type `QObject*(QObject::)() const' does not mat
  2. 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:
Qt Code:
  1. void MainWindow::openLoginDialog()
  2. {
  3. LoginDialog l(this);
  4. l.exec();
  5.  
  6. }
To copy to clipboard, switch view to plain text mode 

Have somebody a idea how to get the Parent Pointer?