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. Increase floating QDockWidget resize margin size

Increase floating QDockWidget resize margin size

Scheduled Pinned Locked Moved Unsolved General and Desktop
qdockwidget
5 Posts 2 Posters 2.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.
  • S Offline
    S Offline
    skebanga
    wrote on last edited by
    #1

    I am using a QDockWidget.

    When floating, the resize margin is really small (where the mouse cursor changes to signal vertical/horizontal/diagonal resizing)

    How can I increase this?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Do you mean the "external" window part. It's the window manager that handles it not Qt.

      By the way, what OS are you on ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        skebanga
        wrote on last edited by
        #3

        @SGaist, thanks for your response!

        When the QDockWidget is docked inside the QMainWindow, then the resize margin is fairly wide, as I have highlighted in red in this picture:

        docked in QMainWindow has a large resize margin

        However, when floating, the resize handle margin reduces to a single pixel, as highlighted in red in this picture:

        floating, QDockWidget has a very small resize margin

        Re OS: I'm on Ubuntu Gnome 14.04, which uses Gnome 3 desktop.

        If it's handled by the window manager, is there a way to programatically change this within my app source?

        BTW, apologies for the delay in responding... Is it possible to subscribe for instant email notifications upon activity in threads I've participated in?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          skebanga
          wrote on last edited by
          #4

          I just ran my test app in an Ubuntu 14.04 default environment (so running Unity window manager), and the resize margin is significantly larger.

          As such, I would agree with @SGaist that this is indeed a window manager issue, and seems to be down to Mutter and/or the default Gnome 3 theme (which is Adwaita I think?)

          Seems like this is a question better destined for a Gnome 3 forum.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Indeed, don't forget to update this thread once you have more information from them :)

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            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