navid
4th November 2009, 12:09
Hello
my application crash with the following error:
ASSERT failure in QList<T>::at: "index out of range", file c:/Qt/2009.04/qt/include/QtCore/../../src/corelib/tools/qlist.h, line 395
================================================
//header
struct my_labels
{
QLabel * label_a;
QLabel * label_b;
QLabel * label_c;
};
private:
QList<my_labels *> my_labels_list;
//cpp
my_labels_list.clear();;
my_labels_list.at(0)->label_a = ui->label1; //<- error
==========================================
i going to have a list of (pointer to) my labels widgets
i will be appreciated with your comments in this regard.
n navid
my application crash with the following error:
ASSERT failure in QList<T>::at: "index out of range", file c:/Qt/2009.04/qt/include/QtCore/../../src/corelib/tools/qlist.h, line 395
================================================
//header
struct my_labels
{
QLabel * label_a;
QLabel * label_b;
QLabel * label_c;
};
private:
QList<my_labels *> my_labels_list;
//cpp
my_labels_list.clear();;
my_labels_list.at(0)->label_a = ui->label1; //<- error
==========================================
i going to have a list of (pointer to) my labels widgets
i will be appreciated with your comments in this regard.
n navid