Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
4.7.1
-
None
-
Windows 7, Symbian
-
6d7c12ae3f3d0eae6946524ce023ac452cf188c4
Description
A Qt Quick application created with Qt SDK 1.1 Tech Preview with main.qml having the following contents crashes:
import QtQuick 1.0 import Qt.labs.folderlistmodel 1.0 Rectangle { width: 360 height: 360 FolderListModel { id: folderModel folder: "file:///c:/" } Grid { anchors.fill: parent columns: 3 Repeater { model: folderModel delegate: Rectangle { width:100 height:100 color:"blue" Text { anchors.centerIn: parent text: fileName } } } } MouseArea { anchors.fill: parent onClicked: { Qt.quit(); } } }
Application output:
ASSERT failure in QList<T>::take: "index out of range", file ..\..\include/QtCore/../../../../../../ndk_buildrepos/qt-desktop/src/corelib/tools/qlist.h, line 472 Invalid parameter passed to C runtime function. Invalid parameter passed to C runtime function.
If I replace the FolderListModel with a basic ListModel the application works as expected.