Re: Doubt
Maurizio Berti <[email protected]>
| Newsgroups | gmane.comp.python.pyqt-pykde |
|---|---|
| Message-ID | <CAPn+-XQcZNKT4og7cngiAWf4R4Uy_oO1mJ57+DyVXFe+pdXOrQ@mail.gmail.com> |
Il giorno gio 3 ott 2019 alle ore 00:24 Kyle Altendorf <[email protected]> ha scritto: > There's plenty to complain about about designer. You should be able to > go into a mode where empty layouts get placeholder widgets in them and > borders get bigger for easier selection and so on. I haven't tried hard > but I think there could be cleaner diffs of the xml. That's a known problem, especially when you need to add a widget to a new sublayout that is shrunk to 0-size because of the expanding policies of existing widgets. I struggled with it for some time, then I began to add a temporary margin to new sublayouts until I add the first widget, then I reset the margin to the default value. It's not as comfortable and intuitive as one would hope, but it's effective and doesn't take much time once you're used to it. And, anyway, despite its downsides, Designer is far more usable than similar tools for other frameworks, like Glade for Gtk: I used it for some time, and it's simply awful. This is an interesting discussion. What I'm curious about is the big > proprietary applications with highly complex GUIs. Before Kolor was > brought > and killed off by GoPro, they used to crank out programs written with Qt > and > having lots of windows / dialogs. DxO use Qt in several of their programs. > Do > folks like this — who I imagine are wealthy enough to use consultants from > or > working closely with the Qt Company — create their UIs by hand in code, or > via a graphical tool? Since they are proprietary applications, there's no way to (directly) know, but we can see that some "big" companies that have open releases of their programs do use it. For example some components of VirtualBox do use .ui files. MuseScore (not a "big" proprietary software per se, but it has some paid content) also does. I also believe that a lot of components of Autodesk Maya are created with Designer (they have been using custom builds of Qt for some years now, and users can use Designer to customize the whole interface or create their own tools). Google Earth Enterprise also uses ui files. From what I've seen so far, besides small widgets and simple layouts, developers are most inclined to use Designer as long as they can and makes sense: despite being far from perfect, it's a complete tool that in most cases really eases up things, usually saving lots of times and headaches; of course, it doesn't work for all (or anybody). There are plenty of situations for which using it really doesn't make much sense (or it is impossible), but I've to disagree with the conception that any GUI interaction prevents creating that GUI with Designer (or viceversa): except from very specific cases of complex widgets or layouts, interacting with an existing .ui file is almost the same as coding it by hand, with the huge advantage of having all widgets properties close at hand (even easier with multiple selection) instead of having to type everything by hand. Ah, just to say, there's plenty of Designer ui files in Qt sources as well, including, obviously, Designer itself :-) Cheers, Maurizio -- È difficile avere una convinzione precisa quando si parla delle ragioni del cuore. - "Sostiene Pereira", Antonio Tabucchi http://www.jidesk.net _______________________________________________ PyQt mailing list [email protected] https://www.riverbankcomputing.com/mailman/listinfo/pyqt