Results 1 to 3 of 3

Thread: Q3ScrollView

  1. #1
    Join Date
    Apr 2007
    Location
    Bangalore,India
    Posts
    25
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Q3ScrollView

    Hello All,,

    I am porting Q3scrollview to QScrollArea...


    There are few methods in Q3scrollview contentsWidth(), visibleWidth() in Qt3,

    where as these methods are removed in Qt4... How to get the same in Qt4.
    Veda

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

    Default Re: Q3ScrollView

    Qt Code:
    1. // scrollView->contentsWidth();
    2. scrollArea->widget()->width();
    To copy to clipboard, switch view to plain text mode 

    Qt Code:
    1. // scrollView->visibleWidth();
    2. scrollArea->viewport()->width();
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

  3. #3
    Join Date
    Apr 2007
    Location
    Bangalore,India
    Posts
    25
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Q3ScrollView

    Thanks JPN,,

    I need to scroll my scrollbar from one point to other as my cursor jump from one
    text edit to other

    In Qt3 I have used setContentsPos whats the alternative in Qt4 ,
    and also for resizeContents.
    Veda

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.