If you have your own dialog class, then just add some method like void setMyObject(MyObject &obj) and call it before dialog.exec();
But if you want to access this object in many different places and there would be only one instance of it in whole application, then I suggest using Singleton pattern.





Reply With Quote

Bookmarks