szisziszilvi
18th August 2011, 12:20
Hi,
my problem is that I have a QListWidget on my gui and it cannot show more than one item. What have I ticked/set accidentally?! It worked before just fine! Now I'm trying to fill it simply from the Mainindow's contructor like this:
ui->listWidget_meta->addItem("one");
ui->listWidget_meta->addItem("two");
and the result is that I can't see "one", only "two" - as on the attached image. No matter how many items I add, always the last one is there.
What's more I cannot click on the item. It is not enabled (as you can see it is not grey), but simply unchoseable.
my problem is that I have a QListWidget on my gui and it cannot show more than one item. What have I ticked/set accidentally?! It worked before just fine! Now I'm trying to fill it simply from the Mainindow's contructor like this:
ui->listWidget_meta->addItem("one");
ui->listWidget_meta->addItem("two");
and the result is that I can't see "one", only "two" - as on the attached image. No matter how many items I add, always the last one is there.
What's more I cannot click on the item. It is not enabled (as you can see it is not grey), but simply unchoseable.