Results 1 to 2 of 2

Thread: Horizontal Scrolling QListWidget

  1. #1
    Join Date
    Jul 2010
    Posts
    8
    Thanks
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Horizontal Scrolling QListWidget

    Alright, so I have been fooling around with the QListWidget for a while now and I can't seem to find a way to make it only scroll horizontally. Im basically try to make the list only be one row and just scroll horizontally instead of vertically like it is by default... Im sure there is a simple variable im missing, but does anyone have any tips?

    Thanks guys!

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Horizontal Scrolling QListWidget

    I'm not sure if I understand you correctly, but did you try this?

    Qt Code:
    1. setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
    2. setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Replies: 4
    Last Post: 10th May 2010, 22:12
  2. Kinetic scrolling in QListWidget
    By jimiq in forum Qt Programming
    Replies: 2
    Last Post: 16th September 2009, 09:43
  3. QTreeWidget horizontal scrollbar
    By ttvo in forum Qt Programming
    Replies: 1
    Last Post: 16th July 2009, 16:44
  4. Insert an item in an horizontal QListWidget
    By satoshi in forum Qt Programming
    Replies: 8
    Last Post: 19th May 2009, 17:33
  5. Replies: 18
    Last Post: 23rd July 2007, 05:58

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.