Results 1 to 1 of 1

Thread: [Qt3] Two QListviews - VerticalScrollBar Sync Problems

  1. #1
    Join Date
    Jan 2006
    Location
    Netherlands
    Posts
    56
    Thanks
    10
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Question [Qt3] Two QListviews - VerticalScrollBar Sync Problems

    Hello,

    I have a problem with Scrollbars in a QListView.
    I have two listviews next to each other, both containing a set of items with the same text at column 0.

    I want the scrollbars to be in sync with each other.
    I have connected the signal: value() and slot: setValue() of both vscrollbars with each other.

    It seems to work fine if the scrollbar is slided, then the other one goes also to the same position.

    But the sync will not work if an item is expanded/collapsed.

    Does anyone know what's wrong here, or am i missing something in my code.

    I have attached a sample project.
    I am using Qt 3.3.4 by the way.

    screenshot: http://i225.photobucket.com/albums/d...ynccolumns.jpg
    Attached Files Attached Files
    Last edited by BrainB0ne; 25th September 2008 at 13:40.
    ..:: Still Standing Strong ::..

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.