Results 1 to 2 of 2

Thread: How to increase down arrow width and height of a tableedit through stylesheet

  1. #1
    Join Date
    May 2011
    Posts
    120
    Thanks
    9
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default How to increase down arrow width and height of a tableedit through stylesheet

    Hi

    I am using following code to increase height and width of down arrow of a dateedit, but height and width not getting increase.

    Qt Code:
    1. date->setStyleSheet("QDateEdit{color: rgb(131, 64, 0, 255);border: 1px solid gray; border-radius: 5px; background-color:qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:1 rgba(200, 200, 200, 255), stop:0.107955 rgba(200, 200, 200, 10))}QDateEdit::down-arrow{width: 20px; height: 20px}");
    To copy to clipboard, switch view to plain text mode 

    What i am doing wrong.

  2. #2
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to increase down arrow width and height of a tableedit through stylesheet

    Try
    Qt Code:
    1. QDateEdit::down-button{ width: 25px; } // buttno not arrow and only width
    To copy to clipboard, switch view to plain text mode 
    instead.

Similar Threads

  1. QSystemTrayIcon increase width
    By sagirahmed in forum General Programming
    Replies: 1
    Last Post: 28th September 2011, 16:33
  2. QPushButton set width and height from StyleSheet
    By AL in forum Qt Programming
    Replies: 3
    Last Post: 19th March 2010, 15:33
  3. how to increase menuitem's height and width?
    By aoo7wangyan in forum Qt Programming
    Replies: 1
    Last Post: 13th July 2009, 11:00
  4. Replies: 1
    Last Post: 18th February 2009, 09:34
  5. Increase the height of titlebar, ...
    By vql in forum Qt Programming
    Replies: 2
    Last Post: 23rd March 2008, 12: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.