Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator + CMake's `CMAKE_AUTOMOC` and `CMAKE_AUTOUIC`?

Qt Creator + CMake's `CMAKE_AUTOMOC` and `CMAKE_AUTOUIC`?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
5 Posts 2 Posters 1.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    agarny
    wrote on last edited by
    #1

    Hi,

    I have recently modified my CMake project to (finally) take advantage of CMake's CMAKE_AUTOMOC and CMAKE_AUTOUIC "new" variables.

    It works as expected when building my project from the command line. It also does when using Qt Creator, but... now, I am getting thousands (across my whole project) of semantic issues. Not only that, but there are a lot of cases (probably due to my application consisting of several plugins?) where I cannot follow symbols under my cursor.

    In other words, Qt Creator is now pretty much unusable for me.

    Has anyone come across this issue? Has anyone managed to use CMake's CMAKE_AUTOMOC and CMAKE_AUTOUIC "new" variables successfully with Qt Creator?

    FWIW, here is the kind of semantic issues I am getting:

    • error: unknown type name 'SimulationExperimentViewPlugin'
    • error: use of undeclared identifier 'SimulationExperimentViewSimulationWidget'
    • error: no type named 'Property' in namespace 'OpenCOR::Core'

    Needless to say that everything is actually known, declared or exists. I can run and debug my application from Qt Creator, no problems whatsoever. "Just" those thousands of semantic issues, which pollute and slow down everything.

    Cheers, Alan.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      I suggest reporting this on Qt bug tracker.

      (Z(:^

      A 1 Reply Last reply
      0
      • sierdzioS sierdzio

        I suggest reporting this on Qt bug tracker.

        A Offline
        A Offline
        agarny
        wrote on last edited by
        #3

        I suggest reporting this on Qt bug tracker.

        Sure, I just thought that I would check here first to make sure that I wasn't missing something, not least since my experience with creating bug reports hasn't been all that great lately (read: most of them are not being acted upon, if not ignored).

        sierdzioS 1 Reply Last reply
        0
        • A agarny

          I suggest reporting this on Qt bug tracker.

          Sure, I just thought that I would check here first to make sure that I wasn't missing something, not least since my experience with creating bug reports hasn't been all that great lately (read: most of them are not being acted upon, if not ignored).

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          @agarny said in Qt Creator + CMake's `CMAKE_AUTOMOC` and `CMAKE_AUTOUIC`?:

          I suggest reporting this on Qt bug tracker.

          Sure, I just thought that I would check here first to make sure that I wasn't missing something, not least since my experience with creating bug reports hasn't been all that great lately (read: most of them are not being acted upon, if not ignored).

          True. This one looks pretty serious, though, it should get high priority. You may want to ask on Qt Creator mailing list, too, to raise bug's visibility.

          (Z(:^

          1 Reply Last reply
          0
          • A Offline
            A Offline
            agarny
            wrote on last edited by
            #5

            Ok, my problem has nothing to do with CMake's CMAKE_AUTOMOC and CMAKE_AUTOUIC, but... with Qt Creator itself!

            Indeed, I was using Qt Creator 4.9.0, but I have just tried with Qt Creator 4.8.2 and it's all working fine!

            (I have been thinking about filing a bug report, the problem is that my project is pretty big and I haven't been able to come up with a small test case...)

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved