
Originally Posted by
talk2amulya
accepted () is emitted only when u click OK button on the dialog.. r u clickin the OK button only? also, note that the signal wont be emitted when the dialog is hidden or its not visible..make sure all criterias of the signal being emitted are met..otherwise, there is no reason why the slot wont be called
I am indeed clicking the ok button. As you can see, the program exits when i click the other one.
Now, i just noticed i didn't gave all information.
DataDownloader
::DataDownloader (QWidget * parent
= 0){
.......
this->dialog->show ();
this->connectSignals (1);
}
DataDownloader::DataDownloader (QWidget * parent = 0)
:QWidget (parent)
{
.......
this->dialog->show ();
this->connectSignals (1);
}
To copy to clipboard, switch view to plain text mode
void DataDownloader::dataFilledIn ()
{
qDebug ( "Requesting downloads, showing mainwindow and ignoring the dialog");
this->connectSignals (2);
this->window->show ();
this->dialog->done (1);
..............
}
void DataDownloader::dataFilledIn ()
{
qDebug ( "Requesting downloads, showing mainwindow and ignoring the dialog");
this->connectSignals (2);
this->window->show ();
this->dialog->done (1);
..............
}
To copy to clipboard, switch view to plain text mode
Bookmarks