Python PyQt Hide QToolbutton Menu arrow

I want to hide Small Down Arrowthat appears in QToolButtonif I installed for it QMenu.

I tried to use StyleSheetby setting the QToolButton menu-arrowimage to none. The following is the 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 this little arrow on QToolButtonusing the menu?

+4
source share
2 answers

posting my comment as a potential answer (at least for now): It seems like a bug, but this page contains a description of the workaround

+1
source
QToolButton::menu-indicator { image: none; }
+11
source

All Articles