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. Howto: Create a fold-able side panel
Forum Update on Monday, May 27th 2025

Howto: Create a fold-able side panel

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.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.
  • T Offline
    T Offline
    Tabula
    wrote on last edited by
    #1

    I wish to create a fold-able side panel like Outlook 2010 has.

    1. A Widget Container in its normal form almost looks like a DockWidget
    2. When folded /slide out one sees a label which has status on it. So a very thin status widget.
    3. When pressing that label the original widget floats over the existing GUI.

    I tried to start with a widget with a horizontal layout with the normal widget and a vertical label. But than the folding/resizing seems to fail.

    Has anyone an idea how to design/construct this?

    Regards,

    Marcel

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      I have done this using simple x,y w.r.t parent widget. I have used two widgets(small one and big one). I have calculated the x,y position of the small and folded widget. I do hide() and show() based on the user action. It would difficult to do using the Layout.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      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