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

C++ project "Expected declaration"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.2.0
    • C/C++/Obj-C++ Support
    • None
    • Linux Mint 18.01 x64 (16.04 LTS)
      QT 5.8 RC (December 21 release)
      g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
      cmake version 3.5.1

      I am attaching a small sample (C++11) code that builds just fine from command line and from Qt Creator using cmake file.
      But in editor it emit() method is underlined as error?
      Hovering over it states "expected declaration"
      See attached full source and screen shot from QT Creator

        1. Expected Decleration.png
          17 kB
          Robert J. Gebis
        2. QTCREATORBUG-17538.tar.gz
          1 kB
          Robert J. Gebis
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kosjar Nikolai Kosjar
            oxoocoffee Robert J. Gebis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes