TheIndependentAquarius TheIndependentAquarius - 1 year ago 48
C++ Question

How to copy a .ui file in my qwidgets project?

I wish to try this qt example. I created a qwidgets project, copied all headers and sources from the following example to my project.

What is the way to copy the .ui file of that project to my project?

What should be the extention of that file in my project?

Answer Source

The *.ui files are GUI designer files and define the actual GUI.

Copy it as-is. You'll need to invoke the uic (User Interface Compiler) on it to produce the ui_audiorecorder.h header file, which is included in the audiorecorder.cpp file.

Read more on the uic toolchain in the docs: Using a Designer UI File in Your Application.