Forum
Sign Up

Frameless not working when using QOpenGLWidget

8 years 8 months ago - 8 years 8 months ago #1 by Bo Xia (FutureFacilities)
We have a main window which subclasses Qtitan::RibbonMainWindow and we’ve tried every combination of ribbonBar()->setFrameThemeEnabled and ribbonBar()->setTitleBarVisible to get our application look like Office (context headers and quick access bar in the title bar). The default behaviour (that is, when the aforementioned methods aren’t called) is two titlebars on the top:
- The first titlebar is white and empty
- The second titlebar has everything (window handling icons, context headers, quick access bar, the title)
With the appearance of two titlebars, the status bar at the bottom is gone. The cursor seems to be one titlebar higher than it should be (example: you want to close the application and the close icon is in the second titlebar, you must move the cursor above it in the first titlebar).

The issue is caused by QOpenGLWidget; when it's closed, the window is drawn properly. Could you please have a look into this and fix it?

We use Qt 5.6.0, Qtitan 4.4.0, Visual Studio 2015 and Windows 10.
Last edit: 8 years 8 months ago by Bo Xia (FutureFacilities).

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

More
8 years 8 months ago #2 by Developer Machines
Could you please do the following for your application?

QApplication app( argc, argv );
app.setAttribute( Qt::AA_NativeWindows );

The bug still exists?

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

More
8 years 8 months ago #3 by Bo Xia (FutureFacilities)
Thank you, the bug disappeared.

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