Author Topic: [Pyside] I want a line!  (Read 288 times)

Hi!

I have a really weird question, but is anyone able to use QFrame, draw events, QGroupBox, or anything that could draw a line? I am trying to split different sections of my dialog, but those doesn't work. QFrames doesn't show or is the same gray as the background. Changing color doesn't work. QGroupboxes have the title, but not the line around the group... and QPaintEvent, I have no way to tell what's wrong.

I was able to change the background color of a widget(to make colored background rectangles like in QML), but it also changes the background of any widget that is on it, so that's another dead end.

I'm used to Pyside2 in Mari, so I'm pretty sure it's not a total noob mistake, but I can't figure it out. It looks like some stuff are locked or not implemented in Pyside2/SP. Like I can't resize buttons.  :o But there is small buttons and horizontal Lines in Painter's UI, so I guess there has to be a way to do those things.

Anyone could figure this out?
Thanks!

I finally found a workaround. It's not ideal, but it works.

Code: [Select]
separator = QtWidgets.QWidget()
separator.setFixedHeight(1)
separator.setStyleSheet("background-color:rgb(25,25,25)")