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. Minimum visible width
Qt 6.11 is out! See what's new in the release blog

Minimum visible width

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 452 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.
  • N Offline
    N Offline
    n34rt
    wrote on last edited by
    #1

    When I have a QWidget that doesn't contain a 'minimum size', is possible to make him invisible in case her width is less than x?

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

      Hi,

      Do you want to do it like with QSplitter ?
      Is that widget part of a bigger one ?
      What would be the trigger to make it visible again ?

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

      N 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        Do you want to do it like with QSplitter ?
        Is that widget part of a bigger one ?
        What would be the trigger to make it visible again ?

        N Offline
        N Offline
        n34rt
        wrote on last edited by n34rt
        #3

        @SGaist

        Is that widget part of a bigger one ?

        yes

        What would be the trigger to make it visible again ?

        her width being > than x

        1 Reply Last reply
        0
        • C Offline
          C Offline
          ChrisW67
          wrote on last edited by
          #4

          How will the widget that cannot be seen get bigger?

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

            Beside the good question of @ChrisW67, the containing widget should be responsible for that. You can reimplement the resizeEvent method.

            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