Results 1 to 3 of 3

Thread: Autoscroll in ScrollArea

  1. #1
    Join Date
    Aug 2009
    Location
    coimbatore,India
    Posts
    314
    Thanks
    37
    Thanked 47 Times in 43 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Autoscroll in ScrollArea

    hi ,
    I'm using 320x240 window, with 30 odd LineEdit grouped in a groupbox.
    I added this groupbox in a QScrollArea called scrollArea in my prg.

    The window size is fixed. so only 10 LineEdit can be visible in the fixed region.
    I have a Save Button in the bottom of the application (ie., after the 30th LineEdit)
    On Clicking the Save Button, im checking for validation errors.
    On validation, if any error occurs, im focusing to particular LineEdit.
    (for ex) Phone number should be 10 digits. if the user type less than 10 digits,
    Im giving the setFocus to the PhoneNumber LineEdit(its a 16 th lineEdit).

    problem im facing is , I dont know how to auto scroll to the LineEdit which got focused

    I saw QScrollArea::envisibleRegion. but dont know how to use this in my case.

    (or I hav to use other scroll methods in qt?)

    pls guide me

    Thnks
    Bala

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Autoscroll in ScrollArea

    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    BalaQT (26th October 2009)

  4. #3
    Join Date
    Aug 2009
    Location
    coimbatore,India
    Posts
    314
    Thanks
    37
    Thanked 47 Times in 43 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Thumbs up Re: Autoscroll in ScrollArea

    Great wysota.

    Thnks fr ur kind support.

    i posted a similar post. i will close that too..

    Thnks again.

    Bala

Similar Threads

  1. Implementing Autoscroll feature in QT-WebKit
    By srinirao in forum Qt Programming
    Replies: 0
    Last Post: 3rd August 2009, 11:58
  2. QTableView restrict ScrollArea
    By hoshy in forum Qt Programming
    Replies: 2
    Last Post: 6th April 2009, 08:54
  3. scrollArea not updating
    By user in forum Qt Programming
    Replies: 9
    Last Post: 3rd October 2007, 08:17
  4. QTreeWidget without the ScrollArea?
    By Paalrammer in forum Newbie
    Replies: 5
    Last Post: 13th February 2007, 19:06
  5. Listbox Autoscroll is not happening?
    By mahe2310 in forum Qt Programming
    Replies: 4
    Last Post: 9th March 2006, 09:13

Tags for this Thread

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.