Results 1 to 3 of 3

Thread: how to modify menu item height

  1. #1

    Question how to modify menu item height

    hello, dear all,
    I want to modify the default height of menu items. How could I realise that?

    Thanks.

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to modify menu item height

    Menu items usually display text. You can try increasing the application font.

    As for the size, I dont know.
    There was a thread on how to increase icon size for menu... May it can help you. (this)

  3. #3

    Smile Re: how to modify menu item height

    Quote Originally Posted by aamer4yu View Post
    Menu items usually display text. You can try increasing the application font.

    As for the size, I dont know.
    There was a thread on how to increase icon size for menu... May it can help you. (this)

    Thnx for your reply. I have noticed this thread on board. This can be implemented by modify
    -------------------------------------------------------------------------------------
    sizeFromContents(ContentsType type, const QStyleOption* opt,
    const QSize &csz, const QWidget *widget ) const

Similar Threads

  1. Replies: 11
    Last Post: 27th June 2008, 18:54
  2. Item Delegate Painting
    By stevey in forum Qt Programming
    Replies: 3
    Last Post: 9th May 2008, 07:37
  3. Background image on popup menu item
    By MarkoSan in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 27th June 2006, 05:55
  4. Qt/MacOSX preferences menu item
    By mcenatie in forum Qt Programming
    Replies: 4
    Last Post: 14th March 2006, 04:24
  5. image for a custom menu Item.......
    By Naveen in forum Qt Programming
    Replies: 2
    Last Post: 23rd February 2006, 09:28

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.