Forum
Sign Up

drop down checked menu items

12 years 9 months ago #1 by Matthias Zangl
Hello,

is there a way to check and uncheck menu items of a drop down?

thank you,
Matt

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #2 by Developer Machines
Please specify the name of kind of the menu in question.

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #3 by Matthias Zangl
Hi,

here is a sample code. If the action has no graphic, then the checkable does work. But with a graphic it does not. Same behaviour would be nice. In Office 2007 this is used for example in underline dropdown.

thanks,
Matthias
Qtitan::RibbonGroup* pGr = pPage->addGroup( "example" );
pGr->setVisible( true );
static const QString s [] = {
":/RibbonTest2/Resources/file-openimage.png", };
// check state of drop-down action: 
QMenu *pMenu = pGr->addMenu( QPixmap( s[0] ), s[0] );
if( pMenu ) {
  QAction *pActChecked = new QAction( QPixmap( s[0] ).scaled(16, 16), s[0], pMenu );
  pActChecked->setCheckable( true ); // no effect
  pActChecked->setChecked( true ); // no effect
  pMenu->addAction( pActChecked );
}

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #4 by Developer Machines
Thanks for the info. Bug has been fixed and fix will be available in version 2.3.

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #5 by Matthias Zangl
hi, looking very much forward to this version. thanks, Matt

Please Log in or Create an account to join the conversation.

More
  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Moderators: Developer Machines
Time to create page: 0.144 seconds

Developer Newsletter

Join our Developer Machines newsletter to get informed on all the latest releases of the commercial components for Qt.C++, Delphi FireMonkey, updates and general knowledges.

Quick Support

Should you need any additional information about our products or licensing, please contact us at the following email addresses:

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

Get in Touch

If you would like to purchase our products or services, but don’t know how to do it the right way, please feel free to contact us:

  • This email address is being protected from spambots. You need JavaScript enabled to view it.( any questions related to our products or services )
  • This email address is being protected from spambots. You need JavaScript enabled to view it.( questions related to licensing )