Forum
Sign Up

Any Methods to control ribbon button width?

7 years 5 months ago #1 by Lankovski
Hello!

I'm running into troubles with QTitanRibbon when I try to control the width of ribbon button, I've try several motheds including:
1. use RibbonButton::setFixedWidth(), which leads to incorrect ribbon layout;
2. append whitespaces at the head/end of the button label. It doesn't work, maybe there is a whitespace-trimming when calculating the button width.
3. replace the icon image of a width-expanding size(eg. 32x32 -> 48x32), then i'll get a button of original size with a squeezed icon.

Is there any method to set the ribbon button width without leading incorrect display?
any hint will be appreciated :) !

- lankovski

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