Creator: Handling 1 header : n source files

  • As soon as I split the implementation in such a way that the declarations within one header file are defined in multiple different cpp files, Creator gets a bit confused.

    Something like this:

    Declarations: myclass.h
    Definitions for base methods: myclass.cpp
    Definitions for I/O methods: myclass_io.cpp
    Definitions for test methods: myclass_test.cpp

    Is there a way to tell Creator which files belong together, so that e.g. I can press "F4" in any of the cpp files, and get to the header file?

  • You can't make F4 work like that. However, F2 should switch between the declaration and the relevant definition without issue.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.