Forum
Sign Up

QtitanDockingInstaller3.2.0_msvc2017 & QtitanRibbonInstaller5.4.0_msvc2017

4 years 2 months ago #1 by jia
Hello Sir,

How can I make QtitanDockingInstaller3.2.0_msvc2017 & QtitanRibbonInstaller5.4.0_msvc2017 work together.
Can I have some sample programs.

Thank you.

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

More
4 years 1 month ago - 4 years 1 month ago #2 by Eduard
Hello!
I have posted here an example of how to use QtitanRibbon + QtitanDocking together. See two files main_1.cpp and main_2.cpp in the attachment. The example in the file main_1.cpp is more preferred to use. Also it’s worth noticing that you can apply DockPanelManager to any Qt widgets - panels, window, any.

We are always ready to give you some help.
Attachments:
Last edit: 4 years 1 month ago by Developer Machines.

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

  • Eduard
  • Eduard's Avatar
4 years 2 days ago #3 by realfan
Can I use DockPanelManager in QMainWindow's sub class directly?
eg.
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
DockPanelManager* m_dockPanelManager;
};
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
{
m_dockPanelManager = new DockPanelManager(this);
m_dockPanelManager->setDockPanelTransparentWhileDragging(true);
m_dockPanelManager->setArrowMarkersShown(true);
m_dockPanelManager->setDockPanelFullContentsWhileDraggingShown(true);
DockWidgetPanel* panel_1 = m_dockPanelManager->addDockPanel(tr("Panel 1"), Qtitan::LeftDockPanelArea);
panel_1->setIcon(QIcon(":/res/resource_view.ico"));
m_dockPanelManager->setCentralWidget(new QTextEdit);
}

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

More
3 years 11 months ago #4 by Developer Machines
Definitely, it is possible in the latest version of QtitanDocking 3.4 that is available at our website.

In QtitanDocking 3.2 you have to use fake QWidget to deploy the docking manager:
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
{
QWidget* widget = QWidget(this);
m_dockPanelManager = new DockPanelManager(widget);
setCentralWidget(widget);
m_dockPanelManager->setCentralWidget(new QTextEdit);
}

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