Results 1 to 2 of 2

Thread: adding subtitles or labels to a qmenu separator

  1. #1
    Join Date
    Feb 2007
    Posts
    81
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default adding subtitles or labels to a qmenu separator

    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?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: adding subtitles or labels to a qmenu separator

    I guess you could hack that with good old styles, QStyle::drawControl(QStyle::CE_MenuItem)
    J-P Nurmi

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.