Forum
Sign Up

Office 2013 Style: incorrect drawing of menu items with icons and nasty assert

3 years 6 months ago #1 by Dmitriy Shapiro
Hello. In our product we use Office 2013 style. After migrating to version 5.4.0 from 4.* I noticed that menu items are not rendered properly, for example checked items with icons are not shown as checked. Looking at the source code of "drawMenuItem" method I see some calls to draw* functions are commented out. What is the purpose of this? How can I workaround the issue?

Also there is a Q_ASSERT(false) instead one of the calls. Please don't ever do this in library code as it makes debug build pretty much unusable.

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

More
3 years 6 months ago #2 by Dmitriy Shapiro
Looks like Windows 7 Scenic theme is also affected by the issue.

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

More
3 years 6 months ago #3 by Eduard
Hello!
Thank you very much. The bug was reproduced and fixed. The fix will be available in the next version.

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

  • Eduard
  • Eduard's Avatar
3 years 6 months ago #4 by Dmitriy Shapiro
Hi! Thanks for your reply.
I've just noticed that the issue is also relevant for icon-only QToolButtons.

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

More
3 years 6 months ago #5 by Dmitriy Shapiro
I don't know how you prioritize your problems, but this one seems show-stopper. Please, fix this ASAP and add a test case.
Attachments:

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.135 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 )