[Qt-interest] Modal dialogs and their variable still exists after the EXEC?

Giancarlo Amati ilferraresebono at hotmail.it
Tue Apr 7 09:42:17 CEST 2009


Hello everybody,

I have this code:

CPointRegDlg *ptrDlg = new CPointRegDlg();
    ptrDlg->setModal(true);
    int accept = ptrDlg->exec();
    PointList l1 =  ptrDlg->getSourceList();


where ptrDlg is my dialog window derived from a QDialog and I call the exec() function as I want a Modal execution. Now, I wonder if after having called the function I still have the access to its members variable, one of them accessed by getSourceList() (I created this function) or the memory is deallocated after the execution.
The problem I have is that l1 is always NULL and it shouldn't.


Kind Regards.
Giancarlo

_________________________________________________________________
Quante ne sai? Scoprilo con CrossWire!
http://clk.atdmt.com/GBL/go/140630367/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090407/1eeade89/attachment.html 


More information about the Qt-interest-old mailing list