Hi,
Has anyone used this style in windows. Can anyone please tell me how we can use this style in windwos.
Thanks
Hi,
Has anyone used this style in windows. Can anyone please tell me how we can use this style in windwos.
Thanks
From the docs -
Does that answer your question ?QStyleOptionMenuItem::Scroller 4 A popup menu scroller (currently only used on Mac OS X).
Hi,
Thanks for the help. I have already read this. To implement this scroller manually, I have create 2 toolbutton and insert the button to the widget action. Here is the code. Does this approach is good.
QToolButton *pUpArrow = new QToolButton(this);
pUpArrow->setIcon(QIcon (":/Resources/ViewDocumentShow.png"));
pUpArrow->setAutoRaise(true);
pUpArrow->setToolButtonStyle(Qt::ToolButtonIconOnly);
pUpArrow->setMaximumHeight(12);
QList<QAction *> qActionList = pMenu->actions();
QAction* ACTION1 = qActionList[0];
QWidgetAction* actionUp = new QWidgetAction(pMenu);
actionUp->setDefaultWidget(pUpArrow);
pMenu->insertAction(actionUp, actionUp);
Thanks and Regards
Amol.
Can you show how a scroller looks like ? I havent used Mac so dont know how it functions
Bookmarks