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.
  • S Offline
    S Offline
    statquant
    wrote on 20 Jul 2016, 07:32 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.

    J 1 Reply Last reply 20 Jul 2016, 08:21
    0
    • S statquant
      20 Jul 2016, 07:32

      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.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 20 Jul 2016, 08:21 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
      • S Offline
        S Offline
        statquant
        wrote on 20 Jul 2016, 09:09 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
        • S Offline
          S Offline
          statquant
          wrote on 20 Jul 2016, 11:35 last edited by
          #4

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

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 20 Jul 2016, 21:21 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

            1/5

            20 Jul 2016, 07:32

            • Login

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