Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QListWidget is not getting repainted



  • 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.


  • Lifetime Qt Champion

    Hi,

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


Log in to reply