Results 1 to 7 of 7

Thread: ScrollBar problem

  1. #1
    Join Date
    Mar 2010
    Posts
    54
    Qt products
    Qt/Embedded
    Platforms
    Symbian S60

    Default ScrollBar problem

    Hi
    I have a small problem in the vertical scrollbar

    My issue is that , I have a QListView and QScrollbar in my mainwindow. The ListView is filled up with images ,
    I need to scroll the images in the listview using the scrollbar.
    Attached Images Attached Images
    Last edited by kamlmish; 19th January 2011 at 07:58.

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: ScrollBar problem

    you have a separate scrollbar instead of the default one provided by QListView? Can you explain more.

  3. #3
    Join Date
    Mar 2010
    Posts
    54
    Qt products
    Qt/Embedded
    Platforms
    Symbian S60

    Default Re: ScrollBar problem

    I have attached the screenshot for the same.
    In the screenshot , you can see the images getting displayed in LISTVIEW, but I need to display the vertical scrollbar besides the LISTVIEW
    How can I do it ?

  4. #4
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: ScrollBar problem

    what about listview->setVerticalScrollbarPolicy( Always show )?

  5. #5
    Join Date
    Mar 2010
    Posts
    54
    Qt products
    Qt/Embedded
    Platforms
    Symbian S60

    Default Re: ScrollBar problem

    That doesnt work

  6. #6
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: ScrollBar problem

    give a minimal compilable program that reproduces the problem.

  7. #7
    Join Date
    Mar 2010
    Posts
    54
    Qt products
    Qt/Embedded
    Platforms
    Symbian S60

    Default Re: ScrollBar problem

    Solved
    I used
    QScrollArea* scrollarea = new QScrollArea;
    scrollArea->setWidget(this);
    scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysO ff);

Similar Threads

  1. QPlainTextEdit ScrollBar problem
    By linuxsong in forum Qt Programming
    Replies: 5
    Last Post: 21st September 2010, 18:40
  2. Problem with the scrollbar
    By mani_cbz in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 14th July 2009, 09:24
  3. Horizontal scrollbar problem
    By blaylockr in forum Newbie
    Replies: 2
    Last Post: 21st July 2008, 17:38
  4. Scrollbar
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 31st October 2007, 07:33
  5. Horizontal scrollbar tracking problem
    By tebessum in forum Qt Programming
    Replies: 1
    Last Post: 23rd December 2006, 23:15

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.