Unsolved IOS 11.1 und QMessageBox
-
Hallo,
ich habe unter IOS 11.1 das Problem, das QMessageBox en nicht reagieren.
Solange noch keine Application.exec() aufgerufen wurde funktionieren die Messageboxen, befinde ich mich in der Application Loop werden die Messageboxen zwar dargestellt, aber es folgt keine Reaktion auf Ok ...Ist da irgendetwas bekannt ?
Gruß
Gerhard
-
Sorry, hatte ganz vergessen : Qt 5.9.2
-
@Gerhard Wie startest du denn die Boxen?
-
Hallo,
mit msgbox.exec().
-
@Gerhard Und was machen diese MessageBoxen?
-
Hallo,
die geben eine Text aus und stellen entsprechende Buttons (OK, Cancel, Ja,Nein, ....) dar.
Ab IOS Version 11.1 regieren die Buttons jedoch nicht mehr und die MessageBox schließ nicht mehr.Gruß
Gerhard
-
QMessageBox msgBox(this);
msgBox.setText(tr("Beenden ?");
msgBox.setIcon(QMessageBox::Question);
msgBox.setStandardButtons(QMessageBox::Yes, QMessageBox:No);result = msgBox.exec();
-
Hello,
I am having exactly the same problem. Some (not all) QMessageBox are not responding anymore under iOS 11. The very same program works fine under iOS 10 or 9. The problem exists with the static form of QMessageBox or if I create a QMessageBox object and call exec.For instance:
QMessageBox::StandardButton reply = MSGBOX_CLASS::information (this,
tr("test"),
"test",
QMessageBox::Ok | QMessageBox::Cancel);never returns whatever button I touch. "this" is a QMainWindow, but same problem if I put 0 instead.
-
Found a workaround for my case(s):
These QMessageBoxes are always triggered from a QAction (either menu/menubar or toolbar).
I changed the connectionType of the connect to slot for all these actions to Qt::QueuedConnection and the problem is gone.
I will report a Qt bug. -
@maitai_vw You should check the Qt bug-tracker: https://bugreports.qt.io/secure/Dashboard.jspa
If there is no bug reported for this you can file a new one. -
@jsulm already dit that https://bugreports.qt.io/browse/QTBUG-64577
Let's see if this is going to be fixed, I am not optimistic.