Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

QDialog::exec react after 3 calls

$
0
0
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.

Viewing all articles
Browse latest Browse all 18427

Trending Articles