August 5, 2011

chernetsov0 chernetsov0
Lab Rat
19 posts

Labeled menu separators

 

Application I’m writing is wholly custom styled, using Qt style sheets. And I was always wondering, is it possible to have labeled menu separators like in cleanlooks style?
See menus example, format menu in cleanlooks to get the idea how it looks like.

 Signature 

Programmer is an organism that can turn caffeine into code.

3 replies

August 5, 2011

Eddy Eddy
Area 51 Engineer
1612 posts

have a look a the QMenu stylesheet examples [doc.qt.nokia.com]

 Signature 

Moderator
Qt Certified Specialist
Nokia Qt Ambassador

August 5, 2011

chernetsov0 chernetsov0
Lab Rat
19 posts

I have had some thorough look at it, but nothing about separator text seems to be in there.
You can only change height, color, use standard box model (margins, padding, border), that’s it.

 Signature 

Programmer is an organism that can turn caffeine into code.

August 6, 2011

Eddy Eddy
Area 51 Engineer
1612 posts

I tried some stylesheet hacks without success.

IMO your best option is to look into the Cleanlooks style and see how they do it.

 Signature 

Moderator
Qt Certified Specialist
Nokia Qt Ambassador

 
  ‹‹ [SOLVED]Localizing resources      Stretchable QToolBar ››

You must log in to post a reply. Not a member yet? Register here!