Results 1 to 4 of 4

Thread: how to add scroll bar on QGridLayout in QT??

  1. #1
    Join Date
    Oct 2007
    Posts
    2
    Qt products
    Qt3
    Platforms
    Unix/X11

    Question how to add scroll bar on QGridLayout in QT??

    how to add scroll bar on QGridLayout in QT??

  2. #2
    Join Date
    Sep 2007
    Location
    Rome, GA
    Posts
    199
    Thanks
    14
    Thanked 41 Times in 35 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: how to add scroll bar on QGridLayout in QT??

    I'm not sure what you're going for, but it sounds like what you want to do is to add a QScrollArea to the main widget which contains the grid layout in question.

    Edit: Sorry, I noticed you're using Qt 3. It may work differently, I'm only familiar with Qt 4.
    Last edited by JimDaniel; 18th February 2008 at 15:32.

  3. #3
    Join Date
    Oct 2007
    Posts
    2
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default how to get scrollbar on frame???

    i m inserting 100 checkboxes on frame.
    i m taking dialog box on which QGridlaout then QVBoxLaout then QListBox.
    On this listbox i m inserting checkboxes. I want scroll bar on that dialog. but whithout checkboxes it is showing scroll bar. but after inserting check boxes size of dialog box gets increased, insted of that i want scroll bar. So how to get scroll bar???

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to get scrollbar on frame???

    You have to use QScrollView.

Similar Threads

  1. ListWidget horizontal scroll.
    By patrick772goh in forum Qt Tools
    Replies: 3
    Last Post: 17th July 2007, 07:32
  2. Qt 3.3 QGridLayout
    By ToddAtWSU in forum Qt Programming
    Replies: 2
    Last Post: 23rd February 2007, 17:40
  3. QScrollArea's Scroll Bars
    By ToddAtWSU in forum Qt Programming
    Replies: 5
    Last Post: 19th September 2006, 13:27
  4. Retrieving offsets of scroll in QWorkspace
    By hardgeus in forum Qt Programming
    Replies: 6
    Last Post: 9th May 2006, 02:25
  5. QRubberBand painting in the scroll area widget
    By SkripT in forum Qt Programming
    Replies: 7
    Last Post: 17th January 2006, 16:48

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.