Important: Please read the Qt Code of Conduct -

Showing QListWidget freezes application

  • Title says it all. It happens with code as simple as this:

    QListWidget* list = new QListWidget();
    new QListWidgetItem(tr("Test"), list);

    I've tried:

    • Not adding an item at all
    • Making its parent a regular window
    • Adding an item in different ways
    • Setting sorting modes
    • Setting it as visible, and different ways to show (i.e. minimized, fullscreen, etc)

    None of which helped. All of them just pop up a blank window with a title, each completely unresponsive. When I click on the X in the top right, I get a Plasma error saying the app is unresponsive, and I have to forcefully terminate it. However, oddly, the application doesn't stop when it's shown, it keeps going which I don't think is supposed to happen. What's going on?

  • Attached it to a QDialog and it worked. Woops.

Log in to reply