Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Convert one project mainwindow in one .dll
Hi i have many features in my main windows. I was thinking to take like .dll and extend to my main program. This is possible? Thx again!
@Jeronimo It is possible. Add a shared lib to your project and in that shared lib add your main window.
But I would not move UI stuff to a shared lib. I would move dedicated logic to shared libraries.
@jsulm A ok so first i convert my program to .dll and then in a new program with a new mainwindow i include it? thx sorry but i'm little lost
@Jeronimo No need to convert your current project. Create new one as Library and in the current project you then add a reference to that library (right click on the project then "Add Library...").
Create new one as Library and in the current project you then add a reference to that library
If i understand goo i create new library in the project that i want to reference¿ ? and in the new add reference at this library? i'm right? sorry for repeating but it's for being sure.
@Jeronimo No. You create a new project of type Library. In the old project you add a reference to this new library.
Are you sure a shared library is the right solution? You want to simplify your main window. For that you can just create different widgets/dialogs in different ui/cpp files and then use them in your main window. This would be much easier. Shared libraries are useful if you want to split your application in smaller parts to be able to update it more easily or if the functionality of a library is used by more than one application.