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. QDockWidget - undocked - resize handle detection?
Forum Updated to NodeBB v4.3 + New Features

QDockWidget - undocked - resize handle detection?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qdockwidget
7 Posts 4 Posters 866 Views 3 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.
  • D Offline
    D Offline
    Dariusz
    wrote on last edited by
    #1

    Hey

    How can I control at what point the handle kick in? I find it to be very tiny range at the moment & hard to get it/resize it.

    TIA

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

      hi
      I think its done by the Os windows manager and not adjustable from Qt.

      D 1 Reply Last reply
      0
      • mrjjM mrjj

        hi
        I think its done by the Os windows manager and not adjustable from Qt.

        D Offline
        D Offline
        Dariusz
        wrote on last edited by
        #3

        @mrjj Hmmm well thats a bummer. I could swear by changing/messing around with stylesheet I was able to somehow make it bigger sometimes... fairly strange we dont have qsizegrip here.

        mrjjM 1 Reply Last reply
        0
        • D Dariusz

          @mrjj Hmmm well thats a bummer. I could swear by changing/messing around with stylesheet I was able to somehow make it bigger sometimes... fairly strange we dont have qsizegrip here.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Dariusz
          well the various platform style can have different features.
          On windows, there is no visible handle. But on another platform there might be.

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

            Hi,

            Do you mean using a custom QSizeGrip ?

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

            D 1 Reply Last reply
            0
            • SGaistS SGaist

              Hi,

              Do you mean using a custom QSizeGrip ?

              D Offline
              D Offline
              Dariusz
              wrote on last edited by
              #6

              @SGaist Can do, I just want to increase the detection area around edge of widget for resizing.

              1 Reply Last reply
              0
              • Chris KawaC Online
                Chris KawaC Online
                Chris Kawa
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Dariusz As @mrjj said this is handled by the window manager. Dock widgets have the tool window style, which on Windows 10 means there is no distinctive line around the window, instead the actual resizing area on the left, right and bottom is the shadow, or more specifically about 2/3 of that shadow which is roughly 5 pixels wide (if you don't have any scaling enabled). That's actually quite enough and it's more than previous Windows versions used (I think XP used something like 2px wide border, although it was a solid line, not a shadow).
                There are couple of ways to make that wider if you're really determined, but all of them require some work (IMO it's not worth it):

                • On detach change the window style to something with a more distinctive border (e.g. Qt::Window, although more visible border doesn't actually mean it's wider).
                • Give the dock some margin and handle the mouse event yourself to handle the resize inside the widget.
                • Use QtWinExtras::extendFrameIntoClientArea and handle native events to make the border wider. Note that also means you'd have to paint that border with native API i.e. GDI, as Qt can't paint on window frames..
                1 Reply Last reply
                1

                • Login

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