Forum
Sign Up

How to get QtitanRibbon5.9.0 and QtitanDocking3.8.0 work together.

2 years 3 weeks ago - 2 years 3 weeks ago #1 by jia
Hi,
How to get QtitanRibbon5.9.0 and QtitanDocking3.8.0 work together. If possible I need an example.
Thank you!
Last edit: 2 years 3 weeks ago by jia.

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

More
1 year 10 months ago #2 by realfan
#include "mainwindow.h"
#include <QTextEdit>
#include <QApplication>
MainWindow::MainWindow(QWidget *parent)
: RibbonMainWindow(parent) {
auto style1 = new Office2016Style();
style1->setTheme(Office2016Style::Colorful);
qApp->setStyle(style1);
ribbonBar()->setFrameThemeEnabled(true);
if (Qtitan::RibbonPage* page = ribbonBar()->addPage(QStringLiteral("Home"))) {
ribbonBar()->setKeyTip(page->defaultAction(), "H");
}
if (Qtitan::RibbonPage* page = ribbonBar()->addPage(QStringLiteral("Edit"))) {
ribbonBar()->setKeyTip(page->defaultAction(), "E");
}

setCentralWidget(new QTextEdit(this));

auto dockPanelManager = new DockPanelManager(this);
auto dockWidgetPanel1 = new DockWidgetPanel("MyDock", dockPanelManager);
dockWidgetPanel->setWidget(new QTextEdit(this));
auto dockWidgetPanel2 = new DockWidgetPanel("MyDock2", dockPanelManager);
dockWidgetPanel2->setWidget(new QTextEdit(this));
dockPanelManager->insertDockPanel(dockWidgetPanel1, Qtitan::LeftDockPanelArea);
dockPanelManager->insertDockPanel(dockWidgetPanel2, Qtitan::LeftDockPanelArea);
}
The following user(s) said Thank You: jia

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