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. Is not this not doable yet?
Forum Updated to NodeBB v4.3 + New Features

Is not this not doable yet?

Scheduled Pinned Locked Moved General and Desktop
8 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.
  • Q Offline
    Q Offline
    qtoptus
    wrote on last edited by
    #1

    Hi

    Is there a way to override the behaviour of QDockWidget splitter? Is there a way to disable it? I want to do custom resize of widget so that it does not resize until release of the splitter not while dragging it.

    Thanks.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kenchan
      wrote on last edited by
      #2

      I think that is a feature of the QSplitterHandle called opaque resize. set by calling setOpaqueResize()

      You subclass the QSplitterHandle to make your own behaviours.

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qtoptus
        wrote on last edited by
        #3

        Ok and how do I get the QSplitterHandle for the docked widget?

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kenchan
          wrote on last edited by
          #4

          OK so how did you split the docked widget in the first place?

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            qtoptus
            wrote on last edited by
            #5

            I don't, when it's docked the main window creates the splitter internally...

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kenchan
              wrote on last edited by
              #6

              Ah I see, maybe we need bit more information about what this docked widget looks like. A code snippet to create it or an image of the window with the widget would help.

              1 Reply Last reply
              0
              • Q Offline
                Q Offline
                qtoptus
                wrote on last edited by
                #7

                QDockWidget when it's docked in the main window.

                Anyway I'm working on solution to mimic the none opaque resizing of docked widgets...when it's working complete I will post method and some code.

                1 Reply Last reply
                0
                • Q Offline
                  Q Offline
                  qtoptus
                  wrote on last edited by
                  #8

                  Finally got it! It involves no change in source code. Just used some trick to disable resize event and call my own custom resize.

                  I hope this feature implemented in next releases, it should be trivial thing...

                  ;-)

                  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