PDA

View Full Version : arrow button



boss_bhat
5th June 2006, 11:41
Hi all,
419
Can some body explain how to draw arrow button like this. Its a triangle on QPushButton which changes the bottom shadow color and top shadow color on clicking.

Thanks in Advance,
Boss

jpn
5th June 2006, 11:47
void QToolButton::setArrowType(Qt::ArrowType type) (http://doc.trolltech.com/4.1/qtoolbutton.html#arrowType-prop)

boss_bhat
5th June 2006, 12:03
No It looks totally different, I want black color to be filled in the triangle. Would you
please tell me how to draw a triangle.

jpn
5th June 2006, 12:16
Override paint event, use black brush and QPainter::drawPolygon().