Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved QListWidget is not getting repainted

    General and Desktop
    2
    2
    43
    Loading More Posts
    • 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.
    • S
      Shivendra Pratap Singh last edited by

      Hello
      I have a Qlistwidget in which we need to show a list every time when we come to that page, but it's getting black(it doesn't show anything) but when I click on the Qlistwidget area it displays its content.

      I have tried repaint, viewport->repaint with no luck, also qApp->processEvent(ExcludeUserInput) work but it slows the application, it takes about 5-10sec to update the page,

      This issue is seen mostly when we return from the page which has QGLWidget

      FYI: I have found one workaround, when I set the focus and clear it then it works fine.

      This issue is coming only on Linux, on window application is working fine.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        Which version of Qt are you using ?
        On which Linux distribution ?
        Can you provide a minimal compilable example ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 1
        • First post
          Last post