Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-13641

QWidget::repaint: Recursive repaint detected when calling repaint outside paintEvent

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 4.7.0
    • Core: Event loop
    • None
    • platform:ubuntu 10.04
      qt:4.7.0

    Description

      Hi ,

      I got the warnning "QWidget::repaint: Recursive repaint detected" when call repaint() outside of paintEvent,
      but from the document of repainter,
      "Warning: If you call repaint() in a function which may itself be called from paintEvent(), you may get infinite recursion. The update() function never causes recursion."
      but I didn't call repaint() from the paintEvent(),actually I emit a signal from paintEvent, for example: emit done();
      and another object will catch the signal and call paintEvent()
      So I wonder if it is a bug or not.

      please refer to the attachment for detail.
      to reproduce the issue:
      1. untar the attachment
      2. qmake;make clean;make
      3. run
      4. click the button ,and move the mouse outside the button
      5. warning will print out

      Best regards,
      dtletmedn@gmail.com

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            earthdomain Earth Domain (Inactive)
            dtdn dtdn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes