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?

Does Qt have a predefined class/component for this?

Scheduled Pinned Locked Moved Solved The Lounge
5 Posts 3 Posters 627 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.
  • M Offline
    M Offline
    mzimmers
    wrote on 12 Jan 2023, 19:50 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 12 Jan 2023, 19:53 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

      M 1 Reply Last reply 12 Jan 2023, 19:56
      1
      • S SGaist
        12 Jan 2023, 19:53

        Hi,

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

        M Offline
        M Offline
        mzimmers
        wrote on 12 Jan 2023, 19:56 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
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 12 Jan 2023, 19:59 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
          • J Offline
            J Offline
            johngod
            wrote on 9 Mar 2023, 00:07 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
            • J johngod referenced this topic on 18 Oct 2023, 17:11

            • Login

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