How to add additional .ui files in Qt VS Add-in

2.4k Views Asked by At

I have created a Qt Application project in Visual Studio. It generates one .ui file for the main window. What if I want to add another window?

2

There are 2 best solutions below

1
On

From the Solution Explorer of you Visual studio, right click on the Form files -> Add new Item -> Qt forms from there select Qt Dialog form (.ui)

0
On

If you use visual studio 2013 and Qt 5, right click your project in solution explorer and select Add -> Class... to launch Add Class dialog.

You can create Qt5GuiClass for your new window in the dialog.