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. QScrollBar's slider gets invisible/hidden if setEnabled(false) is given
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 272 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.
  • S Offline
    S Offline
    Sangeetha24
    wrote on last edited by
    #1

    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.

    jsulmJ 1 Reply Last reply
    0
    • S Sangeetha24

      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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

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

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

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