[SOLVED] Resize QListWidget to QTabWidget size?
-
wrote on 10 Nov 2011, 20:15 last edited by
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!
-
wrote on 10 Nov 2011, 20:21 last edited by
Did you use a "layout?":http://developer.qt.nokia.com/doc/qt-4.7/layout.html
-
wrote on 10 Nov 2011, 20:37 last edited by
Oh wow, yeah I thought I did. Apparently I did not. Ugh, thanks for the spark!
-
wrote on 10 Nov 2011, 20:46 last edited by
You're welcome.
Please edit the title of your first post and add [solved] to it.
2/4