I can't figure this out, if I apply a stylesheet to QMenu, the spacing between the menu text, and the hotkey text does not expand to adjust for the text length, but if I use the default system menu, it works as expected.
Picture of my problem:

You can see above that there is not enough space between the text, and it does not seem to expand at all. Any help would be appreciated!
CSS Code:
background-color: white;
}
padding: 2px 20px 2px 20px;
border: 1px solid transparent; /* reserve space for selection border */
spacing: 20px;
}
border-color: darkblue;
background: rgb(53, 120, 191, 150);
color:white;
}
height: 2px;
margin: 2px 5px 2px 4px;
}
width: 20px;
height: 13px;
}
QMenu {
background-color: white;
}
QMenu::item {
padding: 2px 20px 2px 20px;
border: 1px solid transparent; /* reserve space for selection border */
spacing: 20px;
}
QMenu::item:selected {
border-color: darkblue;
background: rgb(53, 120, 191, 150);
color:white;
}
QMenu::separator {
height: 2px;
margin: 2px 5px 2px 4px;
}
QMenu::indicator {
width: 20px;
height: 13px;
}
To copy to clipboard, switch view to plain text mode
Bookmarks