QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
-
Hello,
I have a problem with using QRadioButton, indeed i should a GUI with Qradiobutton in order to give the operator the choice of finishing th test, when the GUI is loaded and i clicked on my choice an error message is shown on my terminal ( QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it? )
-
Hi,
Can you provide a minimal script that shows the issue ?
-
def bdd_fin_de_test():
mutex.lock()
dialog=uic.loadUi(conf.path.ui+"quit_reason.ui")if not dialog.exec() :
raise errors.UserCancelation()if dialog.Panel.isChecked():
print("==============> Panel <==============")
Result = dialog.Panel.text()
#Result=unicode(Result).encode("latin1");if dialog.operatorCh.isChecked():
print("==============> operatorCh <==============")
Result = dialog.operatorCh.text()
#Result=unicode(Result).encode("latin1");if dialog.endOfTest.isChecked() :
print("==============> endOfTest <==============")
Result = dialog.endOfTest.text()
#Result=unicode(Result).encode("latin1");del dialog
mutex.unlock()
return Result -
def bdd_fin_de_test():
mutex.lock()
dialog=uic.loadUi(conf.path.ui+"quit_reason.ui")if not dialog.exec() :
raise errors.UserCancelation()if dialog.Panel.isChecked():
print("==============> Panel <==============")
Result = dialog.Panel.text()
#Result=unicode(Result).encode("latin1");if dialog.operatorCh.isChecked():
print("==============> operatorCh <==============")
Result = dialog.operatorCh.text()
#Result=unicode(Result).encode("latin1");if dialog.endOfTest.isChecked() :
print("==============> endOfTest <==============")
Result = dialog.endOfTest.text()
#Result=unicode(Result).encode("latin1");del dialog
mutex.unlock()
return Result -
I should have been more precise: a minimal runnable script.
The code you posted cannot be run at all.