How to create copy of Ui and class or import existing one.
-
hi everybody!
I have a project that include many different dialog forms, but all of them has 40% similar code.
So how i can copy existing forms in same project of course with different names, or i can create dialog in another project then include copies into my project with different names. -
Could give us more explanation regarding this 40% of similar code?
-
[quote author="Gerolf" date="1321865941"]And you could create an implementation for that template and derive your dialogs from that base instead of QDialog.[/quote]
Quite true, however, also considder if encapsulation is an alternative for you. You might be able to encapsulate the shared 40% in a class of its own, and just give each of your dialogs an instance of that class. -
If you use google search, you would find, e.g.
"Adding New Custom Wizards":http://doc.qt.nokia.com/qtcreator-2.3/creator-project-wizards.html
"Extending Qt Creator Manual":http://doc.qt.nokia.com/qtcreator-extending/index.html
"File templates in Qt Creator":http://www.qtcentre.org/threads/28909-File-templates-in-Qt-Creator
just to mention the first three hits :-)
-
bq. If you use google search, you would find, e.g.
Adding New Custom Wizards [doc.qt.nokia.com]
Extending Qt Creator Manual [doc.qt.nokia.com]
File templates in Qt Creator [qtcentre.org]
just to mention the first three hits :-)Thanks a lot!
That was helpfull.