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

C++11 and QTimer::singleShot()

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.1.1
    • Core: Event loop
    • None

    Description

      It would be nice if I could use C++11 style lambdas with QTimer's single shot property.

      I want to do this:

      //Clears message in 1000 seconds
      QTimer::singleShot(1000,[&]()

      {this->setMessage(QString(""));}

      );

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              kandel3 Mikhail Kandel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes