![]() |
2012-08-28
, 22:03
|
|
Posts: 534 |
Thanked: 723 times |
Joined on Oct 2009
|
#2
|
![]() |
2012-08-28
, 22:11
|
Posts: 642 |
Thanked: 486 times |
Joined on Aug 2008
|
#3
|
On that NOTIFY comment, you can add CONSTANT instead to your property declarations if they are indeed read only. Also, why are you checking your private member variables for NULL? They are not pointers. Why a QLIst<QObject*> instead of a QList<KeyValueListItem*>? Why it segfaults? Who knows, not enough details, why don't you run it through gdb and get a backtrace?
.h file:
create new items like this, where conditions is QList<QObject*>