By the way, does anyone knows how to create a button (flat would be nice) that drops a drop menu?![]()
By the way, does anyone knows how to create a button (flat would be nice) that drops a drop menu?![]()
Last edited by BrainStorm; 16th August 2010 at 00:43. Reason: spelling corrections
Yes, missed that, since in the code snippet the return was not checked if it is valid.
Use a normal buttun and set a menu via QPushButton::setMenu(). for flat use QPushButton::setFlat().
BrainStorm (16th August 2010)
Ohh.. i see ^^ thanks, i was using QMenu::popup() with QPushButton::pos() :p
Bookmarks