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

QFutureWatcher example code won't compile due to missing & operator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.15.1
    • 5.15.0
    • Documentation
    • None
    • 1
    • f172f0dee931821991905879d03c01a409975983 (qt/qtbase/dev) d594d437da5d9dd3fd561a647fef95c25fc6e824 (qt/qtbase/5.15)
    • Da Vinci sprint 12

    Description

      The example in https://doc.qt.io/qt-5/qfuturewatcher.html#details won't compile this way as the signal must be a method reference.

      Change from

      connect(&watcher, QFutureWatcher<int>::finished, &myObject, &MyClass::handleFinished);
      

      to

      connect(&watcher, &QFutureWatcher<int>::finished, &myObject, &MyClass::handleFinished);
      

      Attachments

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

        Activity

          People

            paulwicking Paul Wicking
            ssproessig Sören Sprößig
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes