That is not so easy or the most usefull way to do it.
Writing a plugin isn't so easy and there is the problem of different compilers platforms.
I don't understand what it means :
-----
Promoting a widget doesn't yield any benefits other than forcing uic to generate code for the promoted widget instead of its superclass. Bearing the fact that uic doesn't create the top-most widget, promoting it doesn't make any sense, the code generated by uic would be identical with the only exception that setupUi() would have a different argument type which would give no additional value considering the presence of inheritance in C++ where you can pass a subclass to a function that expects a superclass.
----
Look at what I expect:
Bookmarks