How Can I Create DLL of QTWidgetApplication ?
-
Hi, I'm Trying to Design a Desktop Application in Qt Creator and have one Windows (mainwindow.h).
and I want to assemble this window into another project To complete the project.
my question is, is there any clean way to create a dll or library file of this window (including .h .cpp and .ui) and then add that to another project?What way do you suggest for better development of more extensive software?
How can I develop my software in an object-oriented way?
-
@S_Hamzeh74 said in How Can I Create DLL of QTWidgetApplication ?:
then add that to another project?
Is that other project also a Qt project?
You can create a DLL, but it will be complicated if the other project is not a Qt project. -
@S_Hamzeh74 said in How Can I Create DLL of QTWidgetApplication ?:
but I want to attach my window to other windows
Not sure what you mean. You can't attach a window to other windows.
If you mean you want reuse some code from one project in another then yes you can create a shared library from that code. How exactly depends whether you use QMake or CMake.