This is the first time I'm using a designer, though I've been working on Qt for quite some time now.

Consider the QWidget & QMainWindow created using designer doesn't have header & source files generated. I need to set a custom QWidget created through as central widget to QMainWindow. A header file is getting generated automatically for each of the form. But if I cannot edit it as my changes would be lost.

In my case -
app_view.ui represents QMainWindow and
pstate.ui represents QWidget (This should be set as central widget for the above mentioned QMainWindow)

How do I achieve this? Kindly help me. Thanks.

I'm using Qt 4.8 in Visual Studio 2008.