Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. The Lounge
  4. Does Qt have a predefined class/component for this?
QtWS25 Last Chance

Does Qt have a predefined class/component for this?

Scheduled Pinned Locked Moved Solved The Lounge
5 Posts 3 Posters 616 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.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by
    #1

    Hi all -

    Grabbed these screenshots from weather.com, but you can find this kind of window anywhere.
    Screen Shot 2023-01-12 at 11.46.48 AM.jpg
    and when you click on the down arrow to the right:
    Screen Shot 2023-01-12 at 11.47.05 AM.jpg
    I don't know the correct term for this, but...is there something in Qt-land that provides this?

    Thanks...

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

      Hi,

      Not directly no but this stack overflow thread has several possible implementation that might interest you.

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

      mzimmersM 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        Not directly no but this stack overflow thread has several possible implementation that might interest you.

        mzimmersM Offline
        mzimmersM Offline
        mzimmers
        wrote on last edited by
        #3

        @SGaist wow, that's more elaborate than I'd imagined, though I guess most of the code deals with the animation. Thanks for the link.

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

          You can make it simpler indeed but it will fill less smooth to your users :-)

          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
          • johngodJ Offline
            johngodJ Offline
            johngod
            wrote on last edited by
            #5

            While a go I did something like this in qml, I just made a video
            It's from one of my projects, the code in here
            Basically it's a qml parent Column, with expand / collapse widgets child Columns, wraped in a xxxItemFrame.qml component which abstracts "Open" and "Close" states and their animation transitions.

            1 Reply Last reply
            1
            • johngodJ johngod referenced this topic on

            • Login

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