Skip to content Skip to sidebar Skip to footer

Add A Spacer Line Between Layouts Pyqt

I would like to add a spacer line between two layouts: Separador = QFrame() Separador.Shape(QFrame.HLine) Separador.setSizePolicy(QSizePolicy.Minimum,QSizePolicy.Expanding) Separad

Solution 1:

You are not setting the shape of the frame correctly.

Instead of

Separador.Shape(QFrame.HLine)

use

Separador.setFrameShape(QFrame.HLine)

Post a Comment for "Add A Spacer Line Between Layouts Pyqt"