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. Items of QListWidget are greyed out
QtWS25 Last Chance

Items of QListWidget are greyed out

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 423 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.
  • D Offline
    D Offline
    Dvassily
    wrote on last edited by
    #1

    Hello.

    In my application, i have a widget which contains a QTabWidget composed of two tabs. In the second tab there is a QListWidget. When the first tab is shown, i run a method on the widget corresponding to the second tab in order to populate the list. When i press the second tab, the list items appears, but they are greyed out and i cannot select them.

    Could you explain this?

    Dvassily

    JonBJ 1 Reply Last reply
    0
    • D Dvassily

      Hello.

      In my application, i have a widget which contains a QTabWidget composed of two tabs. In the second tab there is a QListWidget. When the first tab is shown, i run a method on the widget corresponding to the second tab in order to populate the list. When i press the second tab, the list items appears, but they are greyed out and i cannot select them.

      Could you explain this?

      Dvassily

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @Dvassily
      There should be no connection between QListWidget items being unselectable and the fact that you are using a QTabWidget with it on the second tab. So try reducing code/show a minimal example of your issue.

      D 1 Reply Last reply
      1
      • JonBJ JonB

        @Dvassily
        There should be no connection between QListWidget items being unselectable and the fact that you are using a QTabWidget with it on the second tab. So try reducing code/show a minimal example of your issue.

        D Offline
        D Offline
        Dvassily
        wrote on last edited by Dvassily
        #3

        @JonB Thank you for you response.

        I finally figured it out, there was a QSplitter surrounding the QTabWidget and i tought i could prevent it from being resize by calling setEnabled(false) directly on it. I found a solution on Stack Overflow : https://stackoverflow.com/a/9224819/10525519 .

        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