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. Creator: Handling 1 header : n source files
Forum Updated to NodeBB v4.3 + New Features

Creator: Handling 1 header : n source files

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 841 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.
  • A Offline
    A Offline
    Asperamanca
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

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

      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