Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-19844

A change in ListView's header height can cause it to overlap the items

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.0.0
    • 4.7.3, 4.7.4
    • None
    • Win 7
      Symbian^3
      Qt 4.7.3
      Qt pre 4.7.4 3efaed62e11e9e461f7244a99a233140b9f28510
    • 3b3a997cfaf24d18202ebda263d04629956738e8 (qt/tqtc-qtdeclarative/5.12.0)

    Description

      Launch the attached QML UI using qmlviewer giving the command line argument '-sizeviewtorootobject'.

      When launched using Qt 4.7.3 there's a problem in the layout shown in the attached picture 473.png.

      When launched using a pre 4.7.4 Qt the situation is better but still there's a visual problem as shown in the attached picture pre474.png.

      In both cases panning the list corrects the visuals as can be seen in the attached picture correct.png.

      Additional info:

      With Qt 4.7.3 panning the list fixes the visual layout but the header y-coordinate gets an odd value. Below is the console output from 4.7.3. The application was started (473.png) and then panned (correct.png):

      Text.width==436
      Text.height==27
      Text.height==999
      Text.width==-10
      Text.height==54
      Text.width==340
      Text.y==945 // This happens when panning
      

      With Qt pre 4.7.4 panning the header out of the view and back fixes the visual appearance and nothing further is output to the console. Below is the console output from a pre 4.7.4 Qt. The application was started (474.png) and then panned (correct.png):

      Text.width==436
      Text.height==27
      Text.height==999
      Text.width==-10
      Text.height==54
      Text.width==340
      Text.y==-54
      

      Attachments

        1. 473.png
          473.png
          7 kB
        2. correct.png
          correct.png
          13 kB
        3. ListViewTest.qml
          1 kB
        4. pre474.png
          pre474.png
          18 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            suistoma Jussi Suistomaa
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes