Forum
Sign Up

Backstage GUI

7 years 11 months ago #1 by Armin
Backstage GUI was created by Armin
Is there a documentation about the backstage functionality from QTitanRibbon?

I can only find examples (but they do not what I need)

I need the following:
1. Open the backstage on program begin (not on user press).
2. Add sidebar menu items via model (changes while displaying)
3. change the File-Button color (and other theme parts) from blue (like MS Word or Outlook) to my custom color.

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

More
7 years 11 months ago #2 by Developer Machines
Replied by Developer Machines on topic Backstage GUI
1. Open the backstage on program begin (not on user press).
To open backstage programmatically please use the following function RibbonBackstageView::open().
2. Add sidebar menu items via model (changes while displaying)
Sidebar Menu is very similar to QMenu and does not has model inside. So it is not possible at the moment.
3. change the File-Button color (and other theme parts) from blue (like MS Word or Outlook) to my custom color.
To do that please use
a) void OfficeStyle::setAccentColor(const QColor& accentcolor); for any Qt color.

b) void OfficeStyle::setAccentColor(AccentColor indexcolor); for predefined color described by OfficeStyle::AccentColor enum.

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

More
7 years 11 months ago - 7 years 11 months ago #3 by Armin
Replied by Armin on topic Backstage GUI
OK Thank you for your support!

Opening the backstage from begin works now.

Now there is one more thing I need to implement:
I need to disable the back button in the backstage.
My application is like access, you can't see the mainwindow's content until you create or load a file.
Is disabling the back button the right way for this?
After loading the file, the user must be able to get to the backstage to load another files or see more informations.
Then the back button must be enabled again.

Where is this back button coming from and how can i disable it dynamically?
m_backstage->setClosePrevented(true);
does not change anything!
Last edit: 7 years 11 months ago by Armin. Reason: Yes.

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