PDA

View Full Version : Multiple choice button



grisson
27th February 2010, 10:22
Hi.
The question is simple: is possible with qt to implement a button like this:

http://img508.imageshack.us/i/senzatitolo1i.png/

when if i click on the button, it does the default operation, if i click on the right arrow it show a menu...

Thanks.

Lykurg
27th February 2010, 11:03
Yes it is. See QPushButton and QPushButton::setMenu(). Next time please add the image to this forum and not to a 3rd site. (To keep the post valid for a long long time..)

grisson
27th February 2010, 11:54
Thanks.

sorry for the image, i will add now..