Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Problem setting visible property of a ListView to false
Forum Update on Monday, May 27th 2025

Problem setting visible property of a ListView to false

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 1.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    albertoMirada
    wrote on 13 Feb 2013, 08:48 last edited by
    #1

    Hello:

    I have an instance of a ListView in a QML that shows elements in a right manner. ListView has its width property set to a valid value, but i need to set clip property to true, because if not, all elements are shown.

    With clip set to true, when i set the listview visible property to true, the list is not hidden. The value of the visible property changes well (cheched in an onVisibleChanged) but the repaint does not occurs. If i set clip to false, list is hidden, but all elements of the model are shown although the width of the list is set correctly.

    if i add a smaller component overlapping the list, and bind its visible to the !visible of the list, the component is shown when listview.visible is false, and the only region that are repainted is the new component's region, and the repaint shows that region as it would be, but not the other part of the list region.

    Am I wrong about the use of visible property in a list?

    1 Reply Last reply
    0
    • F Offline
      F Offline
      frederik
      wrote on 14 Feb 2013, 23:37 last edited by
      #2

      Visible should hide the list. If it is not the case it would be best to create a small self-contained example of this behavior and file an issue at https://bugreports.qt-project.org

      1 Reply Last reply
      0

      1/2

      13 Feb 2013, 08:48

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved