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. [SOLVED] Resize QListWidget to QTabWidget size?
QtWS25 Last Chance

[SOLVED] Resize QListWidget to QTabWidget size?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 4.4k 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
    drumboy354
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      Did you use a "layout?":http://developer.qt.nokia.com/doc/qt-4.7/layout.html

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0
      • D Offline
        D Offline
        drumboy354
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • EddyE Offline
          EddyE Offline
          Eddy
          wrote on last edited by
          #4

          You're welcome.

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

          Qt Certified Specialist
          www.edalsolutions.be

          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