Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Having splitter type functionality in qmainwindw

    General and Desktop
    2
    4
    666
    Loading More Posts
    • 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.
    • R
      ritesh bansal last edited by

      Hello All
      I wanted to imitate the behavior we had in q3mainwindow in QT4 in terms of resize of the dockwindows.
      In qt3 we had a splitter moving while resize, on mouse leave event, the dock widgets gets refreshed to new sizes.
      whereas in qt4 the docwindows resize dynamically.

      Regards
      Ritesh

      Joel Bodenmann 1 Reply Last reply Reply Quote 0
      • Joel Bodenmann
        Joel Bodenmann @ritesh bansal last edited by

        I think what you want is QSplitter::setOpaqueResize(false).

        Industrial process automation software: https://simulton.com
        Embedded Graphics & GUI library: https://ugfx.io

        R 1 Reply Last reply Reply Quote 0
        • R
          ritesh bansal @Joel Bodenmann last edited by

          @Joel-Bodenmann

          Thanks Joel
          This seems to work, But is this available for qmainwindow which has dockable widgets.
          I mean is the qmainwindow dockable widgets divided with splitter's.
          If so how can we get the splitters and apply this function over this?

          Regards
          Ritesh

          Joel Bodenmann 1 Reply Last reply Reply Quote 0
          • Joel Bodenmann
            Joel Bodenmann @ritesh bansal last edited by

            I see what you mean. My bad.
            The only other thing I found is controlling whether the dock widgets are being animated or not. However, this doesn't affect their resize behavior.

            Hopefully somebody else can help. Sorry.

            Industrial process automation software: https://simulton.com
            Embedded Graphics & GUI library: https://ugfx.io

            1 Reply Last reply Reply Quote 0
            • First post
              Last post