Results 1 to 3 of 3

Thread: QPushButton QMenu QAction

  1. #1
    Join Date
    Jul 2007
    Posts
    104
    Thanks
    22
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QPushButton QMenu QAction

    I will explain my problem with example.
    My button is 220 pixel width.
    I create a menu for it.And using setFixedWidth function I set width of menu to 220 pixel too.
    But I couldnt orginize my actions width.They are all default size.So theh have 100 pixels size.So my actions label(names...) are shorter than menu width.And I want to learn to how to set size of actions same to menu.

  2. #2
    Join Date
    Jul 2007
    Posts
    104
    Thanks
    22
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QPushButton QMenu QAction

    These are the pictures.
    Attached Images Attached Images

  3. #3
    Join Date
    Jul 2007
    Posts
    104
    Thanks
    22
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QPushButton QMenu QAction

    I found thanks.I thought there is a delegate structure working background of all widgets.So I may change the settings of widgets using delegation.But I think this trick is only for views...

Similar Threads

  1. no compile error, but error on run with QMenu QAction
    By sincnarf in forum Qt Programming
    Replies: 4
    Last Post: 4th May 2011, 12:05
  2. how to popup and close a QMenu
    By Placido Currò in forum Qt Programming
    Replies: 15
    Last Post: 14th May 2007, 17:41
  3. Replies: 2
    Last Post: 23rd February 2006, 17:38

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.