Important: Please read the Qt Code of Conduct -

[SOLVED] Resize QListWidget to QTabWidget size?

  • Hello! I'm a somewhat new person to developing GUI's with QT (I'm actually using PyQt) but I'm running into a problem.

    I have a QTabWidget. In one of the tabs I have a QListWidget. When the QTabWidget gets resized (with the window resizing and etc...) I want the QListWidget to resize with the QTabWidget. I've been searching and haven't found a way to do it, although I'm sure it's possible.

    Here's what I'm doing. I am going to have a list of icons on a few different tabs that the user can drag and drop into another window. I figured that using a tabWidget and listWidget is the best way to go.

    Is anybody able to help me or point me in the correct direction? Thanks so much!

  • Oh wow, yeah I thought I did. Apparently I did not. Ugh, thanks for the spark!

  • You're welcome.

    Please edit the title of your first post and add [solved] to it.

Log in to reply