TheIndependentAquarius TheIndependentAquarius - 3 months ago 12
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.

http://doc.qt.io/archives/qt-5.5/qtmultimedia-audiorecorder-example.html

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

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.

Comments