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

QtTreeView crashes in opening a specific sequence of nodes.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 4.8.x, 5.0.0 Beta 2
    • 4.8.2
    • Widgets: Itemviews
    • None
    • windows 7
    • qt5:fd6a870136ab2fdb3ce8b516abcf8c05d45caba7, Qt4:85e95859047d2c198e495cd4cb6a4352df76e6d4

    Description

      Code relevent to this is attached. There is a TreeView in the code and if clikcing on 0th element is followed by clicking on 3rd element(last Element) caueses a crash.

      This is not recreated in Windows XP only crash in Windows 7.
      Following part seems to be responsible for the crash.

      int QTreeViewPrivate::itemHeight(int item) const
      {
          if (uniformRowHeights)
              return defaultItemHeight;
          if (viewItems.isEmpty())
              return 0;
          const QModelIndex &index = viewItems.at(item).index;
          if (!index.isValid())
              return 0;
          int height = viewItems.at(item).height;
          if (height <= 0) {
              height = q_func()->indexRowSizeHint(index);
              viewItems[item].height = height;
          }
          return qMax(height, 0);
      }
      
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            e0348803 Miikka Heikkinen
            thwijeth Tharanga Wijethilake (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes