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. "IntelliSense" problem (2 projects with UI classes with same name)
Forum Updated to NodeBB v4.3 + New Features

"IntelliSense" problem (2 projects with UI classes with same name)

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 3 Posters 1.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.
  • D Offline
    D Offline
    Deluxef
    wrote on last edited by
    #1

    I don't know if this is known problem (or maybe not considered as problem at all), but i encountered problem with code completion/syntax highlighting in Qt Creator (2.8.1).

    When I have opened two projects and both of them contain *.ui file with same name, class name and namespace name (lets say mainwindow.ui which generates ui_mainwindow.h/Ui_MainWindow).
    In this situation I include file "ui_mainwindow.h" in some other file in project B, but Qt Creator thinks I included file from project A (when I use "Follow Symbol Under Cursor" feature or code completion) and uses file from project A build directory.
    Lets just note that, these projects are unrelated and build works fine.

    Hopefully is my explanation of problem undestandable.
    Thanks for any response.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      anhn
      wrote on last edited by
      #2

      I have encountered the same problem not only with UI class but any class with the same name from 2 different opened projects. This is quite annoying and effectively broke the "intelliSense" feature.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Code_ReaQtor
        wrote on last edited by
        #3

        Same problem here. Not sure if this bug has been reported. The best way to avoid this is not to use similar names.

        • "Prevention is better than cure."

        Please visit my open-source projects at https://github.com/Code-ReaQtor.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          anhn
          wrote on last edited by
          #4

          More on this bug. It affects the Refactor-Rename feature as well. When I try to rename a method, QTCreator renames that method in other project and leaves the one in the current edited project intact. Kind of driving new users like me mad.

          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