Preeteesh
6th February 2008, 10:37
Hi,
I have a small peice of code
QMenu *menu = new QMenu(this);
menu->addAction("Testaaaaaaaaaaaaaaaaaaaaa");
menu->addAction("Test1");
menu->addAction("Test2");
pushButton->setMenu(menu);
This will add menu to pushbutton, when i click menu it starts showing menu from left handside i.e start of QPushButton (bottom left) but i would like the menu to start drawing from right hand side of QPushButtoh i.e. end of QPushButton (bottom right), can some one guide me how is this possible..?
Thanks..!
I have a small peice of code
QMenu *menu = new QMenu(this);
menu->addAction("Testaaaaaaaaaaaaaaaaaaaaa");
menu->addAction("Test1");
menu->addAction("Test2");
pushButton->setMenu(menu);
This will add menu to pushbutton, when i click menu it starts showing menu from left handside i.e start of QPushButton (bottom left) but i would like the menu to start drawing from right hand side of QPushButtoh i.e. end of QPushButton (bottom right), can some one guide me how is this possible..?
Thanks..!