Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[SOLVED] How to move QGroupBox tittle to bottom side?



  • how to move QGroupBox tittle to bottom side?
    alt text


  • Moderators

    Hi, welcome to devnet.

    You can do that with stylesheets, e.g.

    setStyleSheet("QGroupBox::title { subcontrol-position: bottom left; }");
    

    Then you can adjust the position exactly using left, bottom and padding.

    But think hard if you really want to do that. It's like a book title placed on the back cover.



  • Hi, and thank you.

    For improve appearance might to add it

    "QGroupBox {margin-bottom: 3px;}"
    "QGroupBox::title { subcontrol-position: bottom; "
    " top: 3px; }"