Results 1 to 5 of 5

Thread: How to add scrollbar...?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2010
    Posts
    4
    Qt products
    Platforms
    Windows

    Default How to add scrollbar...?

    How can v add a scrollbar to a listWidget-checkBox combination? ('combination' means thr ll be one checkbox corresponding to (or on right of) each listWidget item)

    i tried this:
    created a listWidget and a set of, say 10, checkBox ctrls.
    then created a widget, and dragged all into the widget.
    then created a scrollArea, and dragged the widget into the scrollArea. (this step may not be necessary)
    then added this code on pageload, as per the tutorial says:
    ui->scrollArea->setWidget(ui->widget);

    but i get runtime error. (no helpful info shown about the error)
    WHY!?
    Last edited by jojanpm; 22nd October 2010 at 12:37.

Similar Threads

  1. Using Scrollbar on mainwindow
    By Amit_3117 in forum Qt Programming
    Replies: 4
    Last Post: 30th October 2010, 05:09
  2. ScrollBar
    By damodharan in forum Qt Programming
    Replies: 1
    Last Post: 11th February 2010, 14:50
  3. What do I need to create this scrollbar?
    By technoViking in forum Qt Programming
    Replies: 2
    Last Post: 15th October 2009, 15:28
  4. scrollbar in a qframe
    By davea402 in forum Qt Programming
    Replies: 2
    Last Post: 21st February 2008, 18:26
  5. Scrollbar
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 31st October 2007, 07:33

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
  •  
Qt is a trademark of The Qt Company.