Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-30928

Missing emit keyword on signal call

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 13.0.1
    • Windows

    Description

       

      When creating a definition that uses the keyword "emit", I get a message that the word "emit" is missing.

      #define S1(signal) emit signal();         
          S1(this->signalAddSongModelLoaded)              // problem
          this->signalAddSongModelLoaded();               // expected problem
          emit this->signalAddSongModelLoaded();          // expected no problem
      #define S2 emit this->signalAddSongModelLoaded();         
          S2                                              // problem

       

       

      Attachments

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

        Activity

          People

            iamsergio Sergio Martins
            bialutkiczarus Cezary Androsiuk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes