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. problem with horizontal layout and scroll bars

problem with horizontal layout and scroll bars

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

    I have to layout items horizontally. Basically there is some QPUshButtons and a widget derived from QListView (ThumbnailListView) that show images.
    There is one and only one existing ThumbnailListView that is positioned beside of one of the QPushButtons.
    The ThumbnailListView has a minimumSize manually placed. The problem occurs when the minimumSize results in a ThumbnailListView that is horizontally big enough to cross the side limit of widget and disappear. No horizontal scrollbar appears.

    The following widgets are present: https://www.flickr.com/photos/10125026@N05/24356804732/

    A QDockWidget that has a QScrollArea that has a QWidget as Main Widget. The latter has applied a QHorizontalLayout as layout and the layout is compound of QPushButtons and one ThumbnailListWidget (QListView).

    How could I make appear a scrollbar horizontally?

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

      Hi,

      Can you share the code where you setup your widget ?

      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