I have an instance of a QListWidget in my applications MainWindow. Adding anything to it goes fine, using QListWidget->addItem(const QString&). However, every time I try and access the current selected items text using QListWidget->currentItem()->text(), it causes a segfault. This is on Gentoo Linux, using Qt 4.1 BTW. Is this a (known) bug, or am I making some horrible logic error?
Bookmarks