Results 1 to 1 of 1

Thread: Adding stylesheet and icon to QStyleOptionButton

  1. #1
    Join Date
    May 2012
    Location
    India
    Posts
    51
    Thanks
    4
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Windows

    Default Adding stylesheet and icon to QStyleOptionButton

    I am using QStyleOptionButton in paint() method of my delegate implementation .
    How to set stylesheet and icon for the button created by QStyleOptionButton ?

    I am able to set the icon , but the icon is set , left side of that button ..

    i want to set the icon and stylesheet on the top of that button ..

    Thankx in advance .
    Last edited by riarioriu3; 8th August 2012 at 16:39.

Similar Threads

  1. Creating a list with icon and text in the center of icon
    By prophet0 in forum Qt Programming
    Replies: 2
    Last Post: 15th December 2011, 04:03
  2. Menu icon size in stylesheet?
    By ComServant in forum Newbie
    Replies: 1
    Last Post: 19th November 2010, 14:45
  3. Replies: 1
    Last Post: 25th October 2010, 12:34
  4. Replies: 2
    Last Post: 12th October 2008, 15:42
  5. Couple of questions: main window icon + toolbar icon
    By bpackard in forum Qt Programming
    Replies: 0
    Last Post: 20th March 2008, 20:03

Tags for this Thread

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.