Forum
Sign Up

use function ribbonBar()->addPage repeatedly, the pages are in wrong order!

2 years 9 months ago #1 by Shen Longqing (Xi’an SRS Information Technology Co., Ltd)
when I use function ribbonBar()->addPage repeatedly, the pages are added correctly, but the pages are not in the order as my adding order.

The code snippet:
m_pageProjectHome = ribbonBar()->addPage(QStringLiteral("Project Home"));
m_pageRun = ribbonBar()->addPage(QStringLiteral("Run"));
m_pageDrawing = ribbonBar()->addPage(QStringLiteral("Drawing"));
m_pageAnimation = ribbonBar()->addPage( QStringLiteral("Animation") );
m_pageView = ribbonBar()->addPage(QStringLiteral("View"));
m_pageVisibility = ribbonBar()->addPage(QStringLiteral("Visibility"));
m_pageSupport = ribbonBar()->addPage(QStringLiteral("Support"));

I hope the page order is Project Home/Run/Drawing/Animation/View/Visibility/Support, but the actual page order is Support/Visibility/Drawing/Animation/Run/Project Home/View(as the picture in the attachment).
Attachments:
The following user(s) said Thank You: 李俊

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

2 years 6 months ago #2 by 李俊
I find this pro too, its unregular

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