Results 1 to 3 of 3

Thread: QToolButton setFlat property

  1. #1
    Join Date
    Mar 2013
    Location
    Hyderabad,Bangalore,India
    Posts
    70
    Thanks
    8
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QToolButton setFlat property

    Hi,

    How would i achieve setFlat property to QToolButton.
    setFlat property is not available to QToolButton.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QToolButton setFlat property

    If you want a non-flat, i.e. "3D", button on the toolbar you can simply add a QPushButton using addWidge()

    Cheers,
    _

  3. #3
    Join Date
    Mar 2013
    Location
    Hyderabad,Bangalore,India
    Posts
    70
    Thanks
    8
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QToolButton setFlat property

    Hi anda_skoa,

    I found it on the net :
    Qt Code:
    1. button->setAutoRaise(true);
    To copy to clipboard, switch view to plain text mode 

    is what i wanted.

    Thanks for replying all my posts.

Similar Threads

  1. Replies: 1
    Last Post: 18th November 2010, 07:39
  2. setFlat(true) and QPushButtton:hover
    By somename in forum Qt Programming
    Replies: 4
    Last Post: 28th May 2010, 10:13
  3. Need help with QToolButton
    By philipp1 in forum Qt Programming
    Replies: 12
    Last Post: 27th October 2006, 15:37
  4. Problem with qtoolbutton
    By moowy in forum Qt Programming
    Replies: 1
    Last Post: 22nd September 2006, 13:30
  5. Need help with QToolButton
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 22nd April 2006, 14:55

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.