Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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



  • 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.


  • Lifetime Qt Champion

    @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.



  • 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)


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


  • Lifetime Qt Champion

    Hi and welcome to devnet,

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


Log in to reply