Forum
Sign Up

How can QtitanDocking2.4.0 and QtitanRibbon5.0.0 working together

2 months 1 week ago - 2 months 1 week ago #1 by yimin
Hi ,
How can I let QtitanRibbon5.0.0 and QtitanDocking2.4.0 working together well.
I used them like this, but only two titles of tow panels change when I select Tab, the widget in the panel can't change right.
         QRibbonWindow::QRibbonWindow(QWidget *parent) : RibbonMainWindow(parent)
       {
         m_holder = new QWidget(this);
         m_manager = new DockBarManager(m_holder);
	m_panelManager = new DockPanelManager(m_holder);
	m_panelManager->setDockPanelTransparentWhileDragging(true);
	m_panelManager->setArrowMarkersShown(true);
	m_panelManager->setDockPanelFullContentsWhileDraggingShown(true);


	m_mdiArea = new QMdiArea(m_holder);
	m_mdiArea->setLineWidth(3);
	m_mdiArea->setFrameShape(QFrame::Panel);
	m_mdiArea->setFrameShadow(QFrame::Sunken);

	m_mdiArea->setViewMode(QMdiArea::TabbedView);
	qApp->installEventFilter(this);
	setCentralWidget(m_holder);
	m_mdiArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
	m_mdiArea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
	m_panelManager->setCentralWidget(m_mdiArea);
	m_panelManager->centralWidget()->setFocus();
        if (m_dbModelPanel = m_panelManager->addDockPanel("Model DockWidgetPanel", QSize(250, 120),LeftDockPanelArea))
	{
		QxGraphicsListWidget *list = new QxGraphicsListWidget(m_dbModelPanel);
		m_dbModelPanel->setWidget(list);
	}
	
	if (m_dbDockPanel = m_panelManager->addDockPanel("Database", QSize(250, 120), InsideDockPanelArea, m_dbModelPanel))
	{
		m_dbDockPanel->setWidget(new QxDBQTreeWidget(m_dbDockPanel));
	}

}
Last edit: 2 months 1 week ago by yimin. Reason: I used QtitanDocking2.3.0 lib not QtitanDocking2.4.0

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 MachinesEduard
Time to create page: 0.118 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 )