PDA

View Full Version : How to increase down arrow width and height of a tableedit through stylesheet



Niamita
19th March 2012, 12:17
Hi

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


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}");

What i am doing wrong.

Spitfire
20th March 2012, 16:09
Try
QDateEdit::down-button{ width: 25px; } // buttno not arrow and only widthinstead.