Aug-17-2019, 01:05 AM
(Offtopic) Here I made the overall layout using an ui file, which is compiled to python on install. It is a grid layout, with frames inside one another, tabs, merged columns and many littles widgets.. So I find it's easier to just place most of them in the designer.
Widgets that need subclass are simply stripped off the layout (ie. class Tree here, or class LibraryTree here...)
And then they are added manually to the layout created in QtDesigner;
Of course, once compiled the ui file is a mess, but it is never meant to be read or edited manually. Performance wise it makes no differences, but when I need to add a button somewhere in the layout, it takes only seconds to do so.
Widgets that need subclass are simply stripped off the layout (ie. class Tree here, or class LibraryTree here...)
And then they are added manually to the layout created in QtDesigner;
self.library = library.LibraryTree(self) self.ui.libraryLayout.insertWidget(1, self.library)Which gives;
Of course, once compiled the ui file is a mess, but it is never meant to be read or edited manually. Performance wise it makes no differences, but when I need to add a button somewhere in the layout, it takes only seconds to do so.