Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.0, 6.9
-
None
-
-
99ff48ce4 (15.0)
Description
Minimal Example:
#include <QApplication> #include <QMainWindow> #include <QMenuBar> #include <QMessageBox> #include <QPlainTextEdit> class TextEdit : public QPlainTextEdit { public: void focusOutEvent(QFocusEvent *event) override { QMessageBox::question(this, "Save", "Save"); } }; int main(int argc, char *argv[]) { QApplication a(argc, argv); QMainWindow w; w.show(); w.menuBar()->addMenu("Foo")->addAction("Bar"); auto te = new TextEdit(); w.setCentralWidget(te); return a.exec(); }
Results in a crash with this Backtrace1.txt
It looks like the QAlphaWidget gets deleted during the execution of QAlphaWidget::run.
The issue can be worked around by calling:
QApplication::setEffectEnabled(Qt::UI_FadeMenu, false);
Attachments
Issue Links
- is required for
-
QTCREATORBUG-31890 Crash when switching build directory
-
- Closed
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-130696 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
600845,3 | CMake: fix crash after changing the cmake build directory | 15.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |