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. [Solved] How can I enrich completion on a project with another project
QtWS25 Last Chance

[Solved] How can I enrich completion on a project with another project

Scheduled Pinned Locked Moved Unsolved General and Desktop
completioneditor
5 Posts 3 Posters 1.4k Views
  • 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.
  • statquantS Offline
    statquantS Offline
    statquant
    wrote on last edited by statquant
    #1

    I have 2 qtcreator projects (say A and B). They compile fine, in A I use classes defined in the B project, hence I do not get completion for.

    How can I tell qtcreator where to get them ?

    What are the additional steps (if any) to get completion for those classes.

    Thanks if you can help.

    jsulmJ 1 Reply Last reply
    0
    • statquantS statquant

      I have 2 qtcreator projects (say A and B). They compile fine, in A I use classes defined in the B project, hence I do not get completion for.

      How can I tell qtcreator where to get them ?

      What are the additional steps (if any) to get completion for those classes.

      Thanks if you can help.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @statquant Hi!
      How do you use classes from B in A? You should reference the source files containing those classes in A.pro, then completion should work.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • statquantS Offline
        statquantS Offline
        statquant
        wrote on last edited by statquant
        #3

        Hello, thanks for answering !
        I simply use a full qualified like MyClassInB::myFunction is that what you mean ? The project A is linked against the library of project B (which works fine).

        EDIT: Actually I realized that I do not have a A.proj, I have

        • A.config
        • A.creator, A.creator.shared, A.creator.user
        • A.files, A.include => (first contain cpp/h/xml..., second contain paths)
        1 Reply Last reply
        0
        • statquantS Offline
          statquantS Offline
          statquant
          wrote on last edited by
          #4

          Ok you solved it !
          PS: I cannot find the solved button

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi and welcome to devnet,

            The button you are seeking can be found clicking on the "Topic Tools" button :)

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            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