I'm writing an application in which I need to open a dialog and execute automatically (without clicking on a push button for example) some animation function.
For opening the dialog, the main windows has a push button that is connected to a slot, which contains
//Open the dialog
dialog dlg=new Dlg ;
dlg.exec();
//Get data from the dialog after it is closed
...
//Open the dialog
dialog dlg=new Dlg ;
dlg.exec();
//Get data from the dialog after it is closed
...
To copy to clipboard, switch view to plain text mode
My dialog class is something like the following, where functionToBeCalled() is the function to be called:
{
/* ...other attributes and methods here... */
public:
void functionToBeCalled();
}
class Dlg : public QDialog
{
/* ...other attributes and methods here... */
public:
void functionToBeCalled();
}
To copy to clipboard, switch view to plain text mode
Could anybody tell me how to do that please?
Thank you in advance for your help.
Bookmarks