Important: Please read the Qt Code of Conduct -

Rounded corners on QDockWidget

  • I am brand new to Qt and would like to create a project with docking windows.
    I have been playing around with the Main Window demonstration that does a pretty good job creating dockable windows and toolbars.
    However, I noticed that when undocked, the QDockWidget objects do not have rounded corners like the main window does in windows 7. Some other tools that I have used (such as C++ Builder) provide this look by default. I thought Qt was using the native widgets to achieve the look of the underlying OS? Do I have to create a stylesheet to achieve this look?


  • Moderators

    Qt doesn't use native widgets. You can use a style sheet to modify a QDockWidget to some extent. Check the "docs":/doc/qt-4.8/stylesheet-examples.html#customizing-qdockwidget for details.

Log in to reply