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

Stylesheet Scrollbar Fusion Corners



  • Hi,
    ScrollbarCorners.png
    As you see, there is corners in Fusion mode.

    Ui File: Ui File

    Stylesheet: ```
    QScrollBar{
    background-color:transparent;
    border:0px solid transparent;
    background:none;}
    QScrollBar:vertical {
    background: rgb(52, 59, 72);
    width: 20px;
    margin: 2px 0px 2px 5px;
    border-radius: 7px;
    border:0px solid transparent; }
    QScrollBar::handle:vertical { background: rgb(0,200,200);
    min-height: 25px;
    border-radius: 7px;
    border:0px solid transparent; }
    QScrollBar::add-line:vertical {
    border: none;
    border:0px solid transparent;
    background: rgb(55, 63, 77);
    height: 0px;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
    subcontrol-position: bottom;
    subcontrol-origin: margin;}
    QScrollBar::sub-line:vertical {
    border: none;
    border:0px solid transparent;
    background: rgb(55, 63, 77);
    height: 0px;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    subcontrol-position: top;
    subcontrol-origin: margin;}
    QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical {
    background: none;
    border:0px solid transparent; }
    QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
    background: none;
    border:0px solid transparent; }
    QScrollBar:horizontal {
    border: none;
    background: rgb(52, 59, 72);
    height: 20px;
    margin: 2px 0px 2px 5px;
    border-radius: 7px;
    border:0px solid transparent;}
    QScrollBar::handle:horizontal {
    background: rgb(0,200,200);
    min-width: 25px;
    border:0px solid transparent;
    border:none;
    border-radius: 7px}
    QScrollBar::add-line:horizontal {
    border: none;
    background: rgb(55, 63, 77);
    width: 0px;
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
    subcontrol-position: right;
    subcontrol-origin: margin;}
    QScrollBar::sub-line:horizontal {
    border: none;
    background: rgb(55, 63, 77);
    width: 0px;
    border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;
    subcontrol-position: left;
    subcontrol-origin: margin;}
    QScrollBar::up-arrow:horizontal, QScrollBar::down-arrow:horizontal
    {
    background: none;}
    QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal
    {
    background: none;}


  • Lifetime Qt Champion

    Don't think this is possible except patching the fusion style.


  • Lifetime Qt Champion

    And what's your actual question?

    btw: please use the code-tags to make your code more readable to others.



  • I want to hide scrollbars corners( or borders, i marked in picture) in Fusion style.

    They showing on Fusion style, not normal style.


  • Lifetime Qt Champion

    Don't think this is possible except patching the fusion style.


Log in to reply