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

C++11 and QTimer::singleShot()

XMLWordPrintable

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

      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(""));}

      );

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes