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. Expandable list view with customized scrollbar
QtWS25 Last Chance

Expandable list view with customized scrollbar

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

    Hello,
    I want to build a widget like this one we can find in Word for example.
    http://imagizer.imageshack.us/v2/xq90/922/uJV74m.png
    http://imagizer.imageshack.us/v2/xq90/923/620JD0.png

    So, there is a list view using a specific scrollbar with 3 buttons and no scroll.
    And when you click on the last button at the bottom right, a new list view with a classic scrollbar is shown over the previous list view (hidden when losing focus). So exact same behavior as in Word.

    We are already capable of displaying a list view with custom content.
    So my main concern is actually how to build the widget in the first image : the list view with the custom scrollbar (3 buttons, no scroll).

    What is the proper way to do this ?
    Any help would be much appreciated :)

    Thanks!

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

      Hi and welcome to devnet,

      For the buttons, you can use QAbstractButton as base and put them in a QVBoxLayout with no spacing and no margin.
      And then put your list view and buttons widgets in a QHBoxLayout again with no margin nor spacing.

      Disclaimer: I'm not affiliated with DevMachines

      That said, depending on your needs, you may be interested by QTitanRibbon.

      Hope it helps

      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