Ok, so the fault isn't in the code. Apparently...
Strange indeed...
This is the code I'm using:
#include <QtGui>
int main(int argc, char** argv) {
QApplication app(argc, argv);
QListWidget* Sidebox = new QListWidget;
Sidebox->setWrapping(false); // <-- _false_
Sidebox->setMovement(QListView::Static);
new QListWidgetItem(QObject::tr("Test"), Sidebox);
new QListWidgetItem(QObject::tr("Hello world"), Sidebox);
Sidebox->show();
return app.exec();
}
jpn says it works with his build of Qt. jpn is using Qt (open source) 4.2 on Linux (as I can see from his screenshot).
I'm using Qt (open source) 4.2 on Windows (like it says to the right of my username). It doesn't work with my build.
Bookmarks