Forum
Sign Up

quick access bar - adding buttons shifts first tab

13 years 1 week ago #1 by Matthias Zangl
Hi,

adding buttons to the quick access bar without setting them to visible makes the first tab page wandering to the right.

Originally:




After adding some buttons:




The code used to add the buttons (executed 3 times for the previous screenshot):
{
  static const QString s [] = {
    ":/RibbonTest2/Resources/QA-undo.png",
    ":/RibbonTest2/Resources/QA-redo.png",
    ":/RibbonTest2/Resources/QA-save.png" };
  size_t n = sizeof( s ) / sizeof( s[0] );
  for( size_t i = 0; i < n; ++i )
  {
    QAction* pAct = new QAction( QPixmap( s[i] ), s[i], ribbonBar()->getQuickAccessBar() );
    ribbonBar()->getQuickAccessBar()->addAction( pAct );
//    ribbonBar()->getQuickAccessBar()->setActionVisible( pAct, ui.chxMakeVisible->isChecked());
  }

Using the setActionVisible and explicitly setting it to false works.


thanks for your info regarding this.

have a nice day,
Matthias
Attachments:

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

More
13 years 1 day ago #2 by Developer Machines
Bug was fixed. Bugfix is available in the current release.

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

More
12 years 11 months ago #3 by Matthias Zangl
I just tested it with version 2.1 and without setting it to visible false explicitly after adding it's still shifting the tab as shown in the screenshot.

thanks,
Matt

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

More
12 years 11 months ago #4 by Developer Machines
We tried to reproduce it other way, but now i understand what need to do to reproduce it (i think). Bugfix has been mailed to you.

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

More
12 years 11 months ago #5 by Matthias Zangl
thanks - it is working. For my understanding now the buttons are added visible by default and have to be hidden, right?

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

More
12 years 11 months ago #6 by Developer Machines
Everything correct. They are created visible by default. To hide them in this panel without breaking the appearance of action in other places, we have done a function - setActionVisible(true/false).

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