pythonpyqt

Python PyQt Hide QToolbutton Menu arrow


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?


Solution

  • posting my comment as a potential answer (at least for now): Looks like this is a bug but this page lists a workaround