[Python] Python PyQt Hide QToolbutton Menu arrow

Discussão em 'Python' iniciado por Stack, Fevereiro 9, 2025.

  1. Stack

    Stack Membro Participativo

    I want to hide the Small Down Arrow that appears on the QToolButton if i set a QMenu to it.

    I have tried using StyleSheet by setting QToolButton menu-arrow image to none. The following is my Qss code:

    QToolButton
    {
    border:1px solid #B6C4DB;
    border-radius:12px;
    padding:2px;
    margin-left:5px;
    }

    QToolButton::menu-arrow
    {
    image:none;
    }

    QToolButton:pressed
    {
    border:1px solid #D6BB0B;
    }


    Is there a way to hide that small arrow on QToolButton with a menu?

    Continue reading...

Compartilhe esta Página