Re:A Book about Qt5
by dman on Sunday March 03, 2019 @10:20PM
(#19298534)
Could you elaborate a bit on the compile times? Python is an interpreted language, so am surprised to see that as a pain point.
[ Parent
| on HN ]
Re:A Book about Qt5
by mattigames on Monday March 04, 2019 @12:32AM
(#19299018)
I don't remember the specifics, I remember that after designing the UI files on QtDesigner you had to compile some files that python consumes, some sort of bindings to the interface you created.
Re:A Book about Qt5
by blattimwind on Monday March 04, 2019 @04:55AM
(#19300048)
You never had to do that. You can load Qt Designer XML files at runtime with neglible performance impact.
I still like to use pyuic so that the IDE will pick up the generated file and suggest widget names while you’re editing the subclass. Otherwise you’re a bit blind.
It’s trivial to add pyuic as an external tool in most iDEs anyway.
Re:A Book about Qt5
by blattimwind on Monday March 04, 2019 @11:06AM
(#19302252)
Good point, though I personally don't work through self.ui but rather prefer loading into the class itself. Then I just put type annotations of the widgets in the class.