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
Forum Updated to NodeBB v4.3 + New Features

problem with horizontal layout and scroll bars

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 604 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.
  • D Offline
    D Offline
    devarde
    wrote on 18 Jan 2016, 19:35 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 18 Jan 2016, 22:20 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

      1/2

      18 Jan 2016, 19:35

      • Login

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