Results 1 to 5 of 5

Thread: QList resize manually

  1. #1
    Join Date
    Jul 2008
    Posts
    26
    Qt products
    Qt4
    Platforms
    Windows

    Question QList resize manually

    Dear,

    I have a QList widget inside a QStackedWidget. I would like to allow the user to resize the list manually from the GUI. I explain better what I mean: dragging and dropping the left side of the list its size should changed.
    Is it possible to do it?
    If you didn't understand the problem let me know. I'll explain it better!

    Thanks a lot

    Annalisa

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QList resize manually

    Are you talking about QListView (or QListWidget)? QList is not a GUI component, it's a generic container class.
    J-P Nurmi

  3. #3
    Join Date
    Jul 2008
    Posts
    26
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QList resize manually

    You're right!
    Sorry, I'm new in Qt...
    :-(

    I'm using QListWidget... if it's a container it's not possible to resize it manually from the GUI? How can I do it?

    Thanks Annalisa

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QList resize manually

    Your description "dragging and resizing from the left side" sounds like you'd like to place the list and stacked widget both into a QSplitter.
    J-P Nurmi

  5. #5
    Join Date
    Jul 2008
    Posts
    26
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QList resize manually

    Exactly!

    Thanks a looooooooooooooot!!!!


Similar Threads

  1. Sorting using qSort(), - if QList contains POINTERS
    By joseph in forum Qt Programming
    Replies: 13
    Last Post: 18th August 2013, 18:55
  2. Accessing QList Objects
    By magikalpnoi in forum Qt Programming
    Replies: 7
    Last Post: 21st September 2006, 20:43
  3. postponing resize event
    By Honestmath in forum Qt Programming
    Replies: 11
    Last Post: 26th February 2006, 00:32

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.