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. Looking for a Qt widget similar to stack panel in functionality
Forum Updated to NodeBB v4.3 + New Features

Looking for a Qt widget similar to stack panel in functionality

Scheduled Pinned Locked Moved General and Desktop
7 Posts 4 Posters 3.7k 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.
  • M Offline
    M Offline
    molto_bravo
    wrote on last edited by
    #1

    Hello everyone,

    I am new to Qt and I was wondering if there is a user control in Qt similar to the Stack panel in Silverlight? I searched around and the closest I found was the SplitView element but it doesn't do what I need. Basically, I have few elements that are placed in a column. Some of these elements expand vertically when activated. When this happens, I need the other widgets to be pushed down automatically instead of getting covered by the newly expanded control. In Silverlight, it was as easy as stacking these elements in a stack panel that dynamically expand and contract when the height of the children elements within grow and shrink respectively. I will appreciate if anyone can point me in the right direction.

    Thanks,

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Rahul Das
      wrote on last edited by
      #2

      I dont know about Silver Slight, Perhaps you are looking for something like "this":http://qt-project.org/doc/qt-5.0/qtwidgets/qstackedwidget.html


      Declaration of (Platform) independence.

      1 Reply Last reply
      0
      • JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #3

        Hi,

        Are you working with widgets or Qt Quick? For widgets, I'd start with "QVBoxLayout":http://qt-project.org/doc/qt-5.1/qtwidgets/qvboxlayout.html. For Qt Quick, start with "ColumnLayout":http://qt-project.org/doc/qt-5.1/qtquicklayouts/qml-qtquick-layouts1-columnlayout.html

        Layouts automatically position (and stretch, if applicable) their child elements relative to each other.

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dasun
          wrote on last edited by
          #4

          What about "QToolBox":http://qt-project.org/doc/qt-5.1/qtwidgets/qtoolbox.html ?

          1 Reply Last reply
          0
          • JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #5

            [quote author="dasun" date="1382943969"]What about "QToolBox":http://qt-project.org/doc/qt-5.1/qtwidgets/qtoolbox.html ?[/quote]Good one; I can't believe I've never noticed this class!

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dasun
              wrote on last edited by
              #6

              It would be nice to have QToolBox like component in Qt Quick Component without writing something my self as you pointed out. :)

              1 Reply Last reply
              0
              • M Offline
                M Offline
                molto_bravo
                wrote on last edited by
                #7

                Thank you all for your prompt and helpful suggestions. I think the QToolBox is what I need to address my problem. I am using Qt Creator so I add my voice to dasun:

                [quote author="dasun" date="1382945555"]It would be nice to have QToolBox like component in Qt Quick Component without writing something my self as you pointed out. :)[/quote]

                Cheers,

                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