How to add one more cpp and .h file to the same UI??
Printable View
How to add one more cpp and .h file to the same UI??
Include the files into where you want them to be.
But if i use the new file's class, it should call the same UI.
So include the same ui_xxx.h file and use it.
Couldnt get your information sir. If i use new file's class name for instance sample2.exec(). It should execute the same UI which the sample1 class is using which is already declared.
How does your 'sample1' define its GUI?
Its declaration in the matching class corresponding to the UI.
So use the same class for the other dialog class.