I have a QMessageBox inside a Plugin which is simply called by
msgBox = QMessageBox()
ret = msgBox.exec()
When I click the OK button there is a warning in the terminal:
Warning: QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
After this warning algorithm works, everything is okay. However if I try multiple times to call QMessageBox and click OK the warning changes on:
Warning: QBasicTimer::stop: Failed. Possibly trying to stop from a different thread*.
In the end of the end QGIS died on signal 11[New LWP 148808]
[New LWP 148809]
[New LWP 148811]
[New LWP 148812]
[New LWP 148813]
[New LWP 148814]
[New LWP 148815]
[New LWP 148816]
[New LWP 148817]
[New LWP 148818]
[New LWP 148821]
Is there any solution?
QMessageBox
without issues. The best way to confirm is to do a text search within Python plugins directory accessible viaimport os; dir = os.path.join(QgsApplication.qgisSettingsDirPath(), 'python', 'plugins'); QDesktopServices.openUrl(QUrl.fromLocalFile(dir))