PDA

View Full Version : adding subtitles or labels to a qmenu separator



dvmorris
4th September 2007, 17:35
is there a way to give a separator a title in a qmenu object?

I would ilke to divide up a menu into logical pieces and give each piece a label, and the only way i know to do it would be to make a new qaction, give it a title, add it to the menu, and disable it.

Is there any other way to do it?

jpn
4th September 2007, 20:59
I guess you could hack that with good old styles, QStyle::drawControl(QStyle::CE_MenuItem) ;)