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

QTimer does not call connected function on timeout ramdomly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.7.0
    • None
    • macOS 10.11.6
      Qt 5.7.0
      compiler:
      Apple LLVM version 7.0.0 (clang-700.1.76)
      Target: x86_64-apple-darwin15.6.0
      Thread model: posix
    • macOS

    Description

      A simple project that exposes the bug can be found in the attachment.
      I started a QTimer in the constructor of a derived class of QGraphicsScene,
      the connected timeout function is not called randomly if line 32 in "graphics_view.h", i.e. io->setPlainText("Hello"), is called within the drawBackground function. The problem also exists if I replace that line with some other member functions of QGraphicsTextItem. And it goes away if I comment out that line. It seems that this problem only happens on mac, I did not experience same problem on Windows or Linux.

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            serpheroth Xiaofeng Wu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes