I have a QWidget with several elements and I need to make a gray frame around it (possible via qss), but I read that QWidget is not border-radius. How can I wrap a QWidget frame?

    1 answer 1

    Use QFrame if you need support for border-radius. For example:

    setStyleSheet("QFrame#myWidget {border 1px solid; border-radius: 2px}")