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. [SOLVED] resize widget inside widget via mouse
QtWS25 Last Chance

[SOLVED] resize widget inside widget via mouse

Scheduled Pinned Locked Moved General and Desktop
qwidgetresizeuser interface
6 Posts 2 Posters 2.9k Views
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by A Former User
    #1

    Hi all!

    QWidget wgt;
    wgt.show();

    we can resize this widget via mouse: left-click on the border and move

    have any idea how do this via mouse if this widget placed in other widget?

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

      Hi,

      Do you mean you want to resize a widget, inside another widget ?

      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
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        yes

        resize via mouse

        sorry by my english

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

          I understood you wanted to use a mouse, the question is whether the widget (lets call it w2) placed in other the other widget (w1) is put in a layout or if you want to resize w2 independently of w1

          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
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            @SGaist:

            w1 -> Vlay or qsplitter -> w2, w3, w4

            for example w1 have fixed size, i want change vertical size of w2 so that it did not ignore the minimum allowable size of neighbors...
            i considered QSplitter but it not exactly what i need... he overlaped other widgets

            i think i will use exactly QSplitter but modifed

            ? 1 Reply Last reply
            0
            • ? A Former User

              @SGaist:

              w1 -> Vlay or qsplitter -> w2, w3, w4

              for example w1 have fixed size, i want change vertical size of w2 so that it did not ignore the minimum allowable size of neighbors...
              i considered QSplitter but it not exactly what i need... he overlaped other widgets

              i think i will use exactly QSplitter but modifed

              ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              solved with QSplitter

              he overlaps widgets if widget have fixed size

              just need to set minimum and maximum size of widget

              i have bad read holy qtdoсs

              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