G T Mittelstädt
G T Mittelstädt

Reputation: 71

cmake & Qt Creator's project tree: .ui-files missing

I'm using a cmake-project with Qt Creator. Everything works and builds fine except Qt Creator does not show any .ui files in the project tree. If I want to edit a .ui file in the designer, I have to switch to the file system view and locate it manually.

Is there a way to tell Qt Creator / cmake to add the .ui-files to the project tree (or .cbp-file) as well?

Upvotes: 1

Views: 1450

Answers (1)

vinograd47
vinograd47

Reputation: 6420

QtCreator shows only files that are used as sources for some target. You can add your .ui files to some target to see them in the IDE, for example:

add_executable(some_target <sources> file1.ui file2.ui)

Upvotes: 5

Related Questions