[Qt-interest] problem with QMenu PushButton
chandrasekar wagmare
sekarwagmare at gmail.com
Thu Jan 29 12:50:27 CET 2009
i use this code to interact a window with a *menu pushButton*
QMenu *pushMenu = new QMenu(pushButton);
DisplayWindow *displaywindow = new DisplayWindow(pushMenu);
QWidgetAction *pushAction = new QWidgetAction(pushMenu);
pushAction->setDefaultWidget(displayWindow);
pushMenu->addAction(pushAction);
pushButton->setMenu(pushMenu);
displayWindow has two pushButton and one label button ...
the problem is that if the user click outside the pushButton the
displayWindow get closed as the menu pushButton is acting entirely on the
displayWindow .. clicking the area of displaywindow is like cliking the menu
pushButton
if the user click on the window it toogles the menu pushButton ... how can i
rectify this one ... please help
PLEASE HELP
--
CHANDRU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090129/5a31661a/attachment.html
More information about the Qt-interest-old
mailing list