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

QScrollBar's slider gets invisible/hidden if setEnabled(false) is given



  • Hi,

    I have created a QListWidget with a customized QScrollbar.
    If I click on the list items, I have made a modeless dialog to display some (processing....)progress msgs.
    So when the modelss dialogs starts, the listwidget should not receive any inputs from the user. To make this, I have used setEnabled(false) to disable the state of the listwidget QScrollbar before creating the modelss dialog.

    But the scrollbar's slider goes to invisible state during the modeless dialog box execution.

    Kindly looking for some ideas.
    ScrollBar.PNG Image attached for reference.

    Thanks.


  • Qt Champions 2019

    @Sangeetha24 Why is this behaviour a problem? Why do you want a working scroll bar if whole list widget is disabled? If it is disabled you can't use it.


Log in to reply