Results 1 to 5 of 5

Thread: How to sincronize the cell of my customt able to be showed (or autoscroll)

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default How to sincronize the cell of my customt able to be showed (or autoscroll)

    I want to have something like 'autoscroll' or 'autofocus' or 'ensurevisible' when use the keys up, down, right, left to move across the cells of my custom table view. (That is to say, when I go to cells whose row or column is greater than visibles)
    Have I to reimplement some function ? Any property ?

    Any idea ? Thanks

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

    Default Re: How to sincronize the cell of my customt able to be showed (or autoscroll)

    What exactly is the problem? To scroll the view simply change the values of its scrollbars.
    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. #3
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to sincronize the cell of my customt able to be showed (or autoscroll)

    The problem is when you are using up-down-right-left keys.
    If you are viewing 5 columns, when you go to the 6th yor selected cell is hidden and you must to use the mouse to scroll horizontally.
    I want to know the way to :
    - to Know if the actual cell is hidden
    - to force visibility
    - to sincronize the top-left visible (if exist) first cell to let my cell to be visible.

    Further, if you are at cell 23 x 33 (for example) and you press ctrl+home, the selected cell is now the 0,0 , but you doesn't view it. .....

    Thanks
    Thanks
    Last edited by tonnot; 5th May 2011 at 09:09.

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

    Default Re: How to sincronize the cell of my customt able to be showed (or autoscroll)

    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.


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

    tonnot (5th May 2011)

  6. #5
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to sincronize the cell of my customt able to be showed (or autoscroll)

    Thank wy, it works !!
    I have to reimplement currentchanged and then call to scrollto.
    I think this is the way , isn't ?
    Thanks agains.

Similar Threads

  1. Can i get index list that showed in viewport?
    By jerry7 in forum Qt Programming
    Replies: 1
    Last Post: 26th November 2010, 20:58
  2. Replies: 1
    Last Post: 7th December 2009, 18:56
  3. Autoscroll in ScrollArea
    By BalaQT in forum Qt Programming
    Replies: 2
    Last Post: 26th October 2009, 05:37
  4. Replies: 2
    Last Post: 12th February 2009, 09:53
  5. No Background image showed
    By jiveaxe in forum Installation and Deployment
    Replies: 2
    Last Post: 30th December 2007, 13:25

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.