Results 1 to 5 of 5

Thread: Listbox Autoscroll is not happening?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    76
    Thanked 37 Times in 32 Posts

    Default Re: Listbox Autoscroll is not happening?

    Quote Originally Posted by mahe2310
    But notice... call the function ensureCurrentVisible() immediately after setCurrentItem(i) function.
    mahe2310
    Could you please make it clear ?

    AFAIK it can be called at any time to make the current Item Visible
    We can't solve problems by using the same kind of thinking we used when we created them

  2. #2
    Join Date
    Jan 2006
    Posts
    80
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    1

    Default Re: Listbox Autoscroll is not happening?

    i called ensureCurrentVisible() at the end of all the loops in my function.
    Even if the control reached there, i couldnt make see the results.

    So i called it immediately after the setCurrentItem(i) function. It worked.

    At first i called the function after all the steps is bcos i am calling the funtion setCurrentItem(i)
    at different sub loops and hence avoid repeatd call.


    mahe2310

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.