Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Creator Indexer broken?
Forum Updated to NodeBB v4.3 + New Features

Creator Indexer broken?

Scheduled Pinned Locked Moved General and Desktop
9 Posts 3 Posters 2.5k Views 1 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.
  • V Offline
    V Offline
    vezprog
    wrote on last edited by
    #1

    Hi,

    I have a subdirectory project that I have created in the QtCreator 2.7.1 which contains 20 sub projects (including dll's and such)...

    Everything was working great in the creator for the past couple weeks, until today, I opened up my project and none of my ui elements are being recognized in the .cpp files.

    The weird thing is, everything still builds fine, but the auto completion does not work for all of the elements in my ui-> classes. Its like it is not updating its indexer.

    This came about when I updated some of the ui elements in one of the projects and all the sudden ALL of the ui elements in every project are not being recognized.

    I have tried recompiling, deleting all the of ui_.h files, and re running QMake, I have tried deleting all of the make files, and nothing seems to be working.

    Does anyone have any ideas?

    FYI: I do redirect my .moc and .ui files to a sub folder in a build folder which is all done in my .pri / .pro files

    Edit: Here's another interesting thing. My first sub project in my sub directory project is called 'core'. When I use the ui-> autocomplete functionality in the creator in any other subproject other than 'core' .cpp class that has a ui header included, the autocomplete points to the ui in the 'core' project. That is why I am not getting any references to my different ui's in my other subprojects... I have NO clue why all of my other projects ui files are pointing to that one mainwindow ui file in the 'core' project...And why the creator is not throwing errors on compile.

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

      Pretty strange, but I'm experiencing the same thing right now, on 2 separate machines and Qt Creator 2.8 beta.

      (Z(:^

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vezprog
        wrote on last edited by
        #3

        I will be trying to fix the issue today...It would be awesome if you could let me know if you find a solution!

        In a way, I am glad I am not the only one having this problem since I am going to be starting another large project very soon.

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vezprog
          wrote on last edited by
          #4

          Sorry for the double, but I have a quick question slerdzio. Do you have multiple subprojects in your subdir project that contain a QMainWindow with the same name?

          I leave mine at the default mainWindow when creating the initial class in the project.

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

            No, in the projects I'm working on, subprojects are either console apps or libraries. Actually, now that I think about it, none of the projects with subdirs template uses QMainWindow at all :) You can find them all on "github":https://github.com/sierdzio, if you feel like exploring.

            (Z(:^

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tobias.hunger
              wrote on last edited by
              #6

              Did somebody "file a bug report":https://bugreports.qt-project.org/ about this? Issues reported here tend to get lost.

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

                No, for me it started happening with a git checkout (dev branch) so before reporting I would need to update QtC to a newer version and see if the problem persists.

                (Z(:^

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  vezprog
                  wrote on last edited by
                  #8

                  Hi, the outcome was to change all of the MainWindow classes (in the sub projects) to their own unique name, and everything is now being recognized correctly.

                  There still is something wrong with the indexer, since all of my MainWindow classes were encapsulated within their own projects and non were linked together. I don't think there should be any reason why the IDE should get confused with the MainWindow of a different project.

                  I will file a bug report. Thank you!

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

                    Thnks go to you, too :)

                    (Z(:^

                    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