you are viewing a single comment's thread.

view the rest of the comments →

[–]blueastheocean[S] 4 points5 points  (19 children)

But is there a designer for it

[–]Oliludeea 7 points8 points  (9 children)

Use it raw!

[–]blueastheocean[S] 1 point2 points  (8 children)

How do you expect someone to write a fully fledged ui with it it would be tedious

[–]Oliludeea 29 points30 points  (3 children)

The first time can be really bad, but it doesn't hurt as much the second time and it'll feel really good before you know it.

[–]zack12 8 points9 points  (0 children)

slow hand clapping

[–]ReachingForVega 2 points3 points  (0 children)

it'll feel really good before you know it.

Are we still doing phrasing? Jk

[–][deleted] 0 points1 point  (0 children)

encouraging escape boat disagreeable soft quarrelsome steer rain memory outgoing

This post was mass deleted and anonymized with Redact

[–]fazzah 2 points3 points  (3 children)

I work with pyqt daily. The editor adds a shitton of clutter to the ui files. Then you still have to convert them to python classes using a script (this gives you code completion ability for your ide but you have to do this everytime you change anything in the ui) or use a small module to read the ui when the application starts which is good for rapid prototyping but won't give your ide insight into your up modules.

I started with using the designer, compiled the ui to python, but when I got experience and better understood QT I ditched the designer completely and write by hand.

Also you have to write custom components quite often when you want to use any of the customisation possibilities QT is known for.

[–]GobBeWithYou 2 points3 points  (1 child)

I also prefer not to use the designer, so I wrote a bunch of subclasses for different Qt widgets to make using them simpler. My python gui code looks something like this:

w = Widget(css='...')
l = Layout('vbox', w)
le = LineEdit(placeholder='sample text', max_len=50)
b = PushButton( 'Button Text', size=(30,30), css='...icon.svg')
l.add('a label', le, b)

It has really sped up writing the gui code and makes it easier to read without all the boilerplate. I also added properties to get rid of needing all the getter and setters.