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

QHeaderView: Application asked to unregister timer 0x2000001 which is not registered in this thread. Fix application.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • 4.8.0
    • 4.7.0
    • Widgets: Itemviews
    • None
    • Linux 32bit

    Description

      The following small code snippet:

      #include <QtGui>
      
      int main(int argc, char **argv)
      {
          QApplication app(argc, argv);
      
          QHeaderView headerView(Qt::Horizontal);
          headerView.setStretchLastSection(true);
      
          return 0;
      }
      

      results in the output "Application asked to unregister timer 0x2000001 which is not registered in this thread. Fix application."

      The output is misleading, what is happening is that a timer is unregistered twice, once by ~QObject and once by ~QHeaderViewPrivate->~QBasicTimer

      The attached patch fixes the warning.

      Attachments

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

        Activity

          People

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            dt Daniel Teske
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes