Forum
Sign Up

bug report: in MDI application, a view was always overlapped by another view

4 months 3 days ago #1 by Frank
I have an MDI application with two views. one view A was drawing with normal GDI, and another view B was drawed with OpenGL. it can be layouted and displayed correctly with QtitanRibbon 4.18.0.

with the newest QtitanRibbon 5.0.0. the view A was always overlapped by view B, and the view A cannot be brought into front.

please check the attached picture.
Attachments:

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

More
1 month 4 weeks ago #2 by Frank
Any feedback?
More information after debug:
The issue comes from the QGLWidget. I have two views, one is developed with QWidget and another is developed QGLWidget. They works fine with QTitanRibbon 4.18.0, and after upgrade to 5.0.0, the QGLWidget view always overlap the QWidget view.
any support is appreciated.

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

More
1 month 3 weeks ago #3 by Developer Machines
Thank you for the bug-report. Bug has been reproduced. Note, QGLWidget it is deprecated class. The best way to use QOpenGLWidget instead.

if for some reason you cannot use it now, then just comment out the line in the constructor of WindowTitleBar class:

WindowTitleBar::WindowTitleBar(QWidget* window)
: QObject(window), m_p(Q_NULL)
{
Q_ASSERT(window != Q_NULL && window->isTopLevel());
//qApp->setAttribute(Qt::AA_DontCreateNativeWidgetSiblings); //Comment this line

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

More
1 month 3 weeks ago #4 by Frank
You are so great, and it works fine. Thanks very much.

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