I’m using a custom dialog, and I’m showing it by calling:
this->numberPick.move(point);
this->numberPick.setWindowFlags(Qt::SplashScreen);
this->numberPick.setParent(this);
this->numberPick.setModal(true);
this->numberPick.exec();
All this code is invoked in void MainWindow::on_boardView_clicked(const QModelIndex &index){} (event “clicked” from QTableView).
The problem is quite strange. I need to click on my button for 3 times for dialog to show. After second click Qt Creator gives me warning like this “QDialog::exec: Recursive call detected”.
Funny thing is that this happens only once (in single application instance). Next clicks works like a charm.
↧