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. Make Resize Handle width 0 for QDockWidget
Forum Updated to NodeBB v4.3 + New Features

Make Resize Handle width 0 for QDockWidget

Scheduled Pinned Locked Moved Solved General and Desktop
qdockwidgetseparator
2 Posts 2 Posters 491 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.
  • N Offline
    N Offline
    NickHackman
    wrote on last edited by
    #1

    Hi,

    I like the QDockWidget and it fits my needs (near) perfectly, but is there any way to get rid of the separator/bar that is used to resize the dockwidget? I want to set the resize handle to 0 width, but still keep its functionality, is this possible?

    Thanks in advance!

    1 Reply Last reply
    0
    • gde23G Offline
      gde23G Offline
      gde23
      wrote on last edited by
      #2

      You can set a stylesheet in your mainwindow.cpp

      setStyleSheet("QMainWindow::separator { width: 0; height: 0; }");
      

      However I would not do it, because then you cannot resize the dock anymore

      1 Reply Last reply
      4

      • Login

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