[Python] Border around QLineEdit and other in Python

Discussão em 'Python' iniciado por Stack, Março 29, 2025.

  1. Stack

    Stack Membro Participativo

    I need some help with style for QtWidgets in Python. How can I add a solid border around Labels, widgets list, Edit etc.

    I added the border to the style sheet like this:

    self.setStyleSheet("""
    background-color: black;
    color: white;
    QLineEdit, QComboBox, QListWidget, QLabel {
    border: 1px solid white;
    }
    """)


    This does not work :( What am I doing wrong?

    Continue reading...

Compartilhe esta Página