Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
Forum Updated to NodeBB v4.3 + New Features

QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?

Scheduled Pinned Locked Moved Unsolved Qt for Python
5 Posts 3 Posters 6.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ay CH
    wrote on last edited by
    #1

    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? )

    18c28236-aae7-4125-82b4-2e64725aaf82-image.png

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Can you provide a minimal script that shows the issue ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Ay CH
        wrote on last edited by
        #3

        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

        jsulmJ 1 Reply Last reply
        0
        • A Ay CH

          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

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Ay-CH You could at least indent your code properly...

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            I should have been more precise: a minimal runnable script.

            The code you posted cannot be run at all.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved