Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Showing QListWidget freezes application

Showing QListWidget freezes application

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 262 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • swirlS Offline
    swirlS Offline
    swirl
    wrote on last edited by
    #1

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

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

    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?

    the

    1 Reply Last reply
    0
    • swirlS Offline
      swirlS Offline
      swirl
      wrote on last edited by
      #2

      Attached it to a QDialog and it worked. Woops.

      the

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved