NucleaPeon / qt5-sle

Qt 5 Snow Leopard Edition based on Qt 5.3.2
Other
1 stars 2 forks source link

Right clicking to open modals will cause them to be unresponsive to close events #1

Closed NucleaPeon closed 4 years ago

NucleaPeon commented 4 years ago

Using qt-creator 3.0.1 or 3.1.2 or 3.1.3 SLE will cause modals to be unresponsive when activated via right-click. The following links may be related to the issue.

https://bugreports.qt.io/browse/QTBUG-34677 https://bugreports.qt.io/browse/QTBUG-31486 https://bugreports.qt.io/browse/QTBUG-34645 FIX? https://codereview.qt-project.org/c/qt/qtbase/+/81133 / https://codereview.qt-project.org/c/qt/qtbase/+/214228/ https://bugreports.qt.io/browse/QTCREATORBUG-11430

NucleaPeon commented 4 years ago

[placeholder]

NucleaPeon commented 4 years ago

https://bugreports.qt.io/browse/QTBUG-34677 mentions that using DontUseNativeDialog as the QFileDialog option will function correctly (and it does using an example), so the problem seems to lie with how QT5 interacts with cocoa to display the dialog.

NucleaPeon commented 4 years ago

Temporary workaround in 53e4ce4b979b23ba6faf8456a47a164924d90647 Would like a more permanent solution later, but closing as this is dealt with.

NucleaPeon commented 4 years ago

NOTE: Fixed in qt-creator. Use QTimer::singleShot(0, this, SLOT(show())); or QFileDialog::DontUseNativeDialog as an option.