Adding Form Files

You can start Qt Designer from Qt VS Tools by double-clicking a .ui file. For more information about using Qt Designer, see the Qt Designer Manual.

To add a new .ui file to the project, select Project > Add New Item > Installed > Visual C++ > Qt > Qt Widgets Form File.

{Qt Widgets Class Wizard}

Typically, you need to wrap the code generated for the form file into a QWidget subclass to add signals or slots to it. Therefore, Qt VS Tools create a .h and .cpp file for you, along with an empty UI form.

© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.