Items of QListWidget are greyed out
Dvassily last edited by
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?
JonB last edited by JonB
There should be no connection between
QListWidgetitems being unselectable and the fact that you are using a
QTabWidgetwith it on the second tab. So try reducing code/show a minimal example of your issue.
Dvassily last edited by Dvassily
@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 .