Results 1 to 3 of 3

Thread: scrollbar in a qframe

  1. #1
    Join Date
    Feb 2008
    Posts
    2
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11

    Unhappy scrollbar in a qframe

    hi guyz,

    don't know if this has been answered...i checked the forum but couldn't find anything...

    i have a widgetstack with 10 different qframes...i also have a qlistview...when i click on different lists then different qframes are showen from the widgetstack.

    the question is regarding a qframe...the frame has more information than the height of the frame. the height of the frame is regulated to a fixed size. since the qframe has more information than the height i want to put a scrollbar so that users can view the information by clicking on the scrollbar and going down on the qframe.

    i can not use qscrollarea...and when i try to use qscrollview then that creates another window which i do not want...also it does not put a scroll bar on my qframe.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,518 Times in 1,388 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: scrollbar in a qframe

    Quote Originally Posted by davea402 View Post
    i can not use qscrollarea...
    QScrollArea is a Qt 4 class. Presumably you're using Qt 3, aren't you? Could you mark Qt 3 as your used products in User CP, please. Also, marking new threads related to either Qt 3 or Qt 4 is recommended. You know, Qt 3 and Qt 4 are pretty much different.

    and when i try to use qscrollview then that creates another window which i do not want...also it does not put a scroll bar on my qframe.
    You must pass the frame as parent to QScrollView constructor.
    J-P Nurmi

  3. #3
    Join Date
    Feb 2008
    Posts
    2
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11

    Default Re: scrollbar in a qframe

    hi thanks,

    I got the scrollview working...

    now i can scroll up and down the frame...however I have one more question..

    since there are more frames in the widgetstack when i am in one frame and i scroll down and go to another frame. the other frame is displayed a bit down. shown in the example:

    the first screenshot is just the mux frame, then the others frame, then the other's frame scrolled down, and then back to the mux frame....

    however if i click on any other frames...everything is proper...its only after i click on the others frame and scroll down then clicking on any other frames ...the frame is displayed not properly.

    dave
    Attached Images Attached Images

Similar Threads

  1. Using a QFrame as a color selection indicator
    By KShots in forum Qt Tools
    Replies: 8
    Last Post: 15th June 2011, 00:55
  2. Treeview scrollbar not updating when inserting rows
    By Khal Drogo in forum Qt Programming
    Replies: 11
    Last Post: 29th November 2007, 14:13
  3. GraphicsView/GraphicsScene: scrollbar policy Qt::ScrollBarAsNeeded
    By Pieter from Belgium in forum Qt Programming
    Replies: 4
    Last Post: 21st March 2007, 14:15
  4. about scrollbar style
    By qtopiahooo in forum Qt Programming
    Replies: 1
    Last Post: 25th January 2007, 14:34
  5. QFrame subclass does not reparent
    By high_flyer in forum Qt Programming
    Replies: 2
    Last Post: 21st March 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.