Results 1 to 4 of 4

Thread: setting the flow while the list is visible causes the items to be laid out again?

  1. #1
    Join Date
    Jan 2006
    Posts
    105
    Thanks
    38
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Question setting the flow while the list is visible causes the items to be laid out again?

    Hi, I have a question about the flow property of a QListView. From the docs, refering to the flow property:
    Setting this property when the view is visible will cause the items to be laid out again.
    What does it means? Maybe that the items can vary their position?
    Thanks.

  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: setting the flow while the list is visible causes the items to be laid out again?

    It means that the position for each item is re-calculated, which is quite natural as the lay out direction changes..
    J-P Nurmi

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

    Dark_Tower (10th April 2006)

  4. #3
    Join Date
    Jan 2006
    Posts
    105
    Thanks
    38
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: setting the flow while the list is visible causes the items to be laid out again?

    Quote Originally Posted by jpn
    It means that the position for each item is re-calculated, which is quite natural as the lay out direction changes..
    So, it means that the order (row posiition) of the items may change?
    Last edited by Dark_Tower; 10th April 2006 at 18:55.

  5. #4
    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: setting the flow while the list is visible causes the items to be laid out again?

    I don't think so. It's just the view's layout direction which changes. The model is most probably not touched.
    Last edited by jpn; 10th April 2006 at 19:10.
    J-P Nurmi

  6. The following user says thank you to jpn for this useful post:

    Dark_Tower (11th April 2006)

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.