Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, April 2008
Qt 4.4.0-RC1: Styled QHeaderView arrows are shown using wrong size


Message 1 in thread

Hello,

It seems that styled QHeaderView::up-arrow and QHeaderView::down-arrow
ignores proper image size. I always see icon about 3x3 pixels, no matter
what's the input image used.

Observed when using following example and images stored in resources:

   QHeaderView::section {
             background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
                                               stop:0 #616161, stop: 0.5
#505050,
                                               stop: 0.6 #434343, stop:1
#656565);
             color: white;
             padding-left: 4px;
             border: 1px solid #6c6c6c;
         }

         / * style the sort indicator * /
         QHeaderView::down-arrow {
             image: url(down_arrow.png);
         }

         QHeaderView::up-arrow {
             image: url(up_arrow.png);
         }

Taken from
http://doc.trolltech.com/4.4rc1/stylesheet-examples.html#customizing-qheaderview.


Is it a bug or am I doing something wrong?

Thanks.

Michal

--
 [ signature omitted ]