Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Rounded corners on QDockWidget
Qt 6.11 is out! See what's new in the release blog

Rounded corners on QDockWidget

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kesayo
    wrote on last edited by
    #1

    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?

    Thanks!

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on last edited by
      #2

      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.

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved