Results 1 to 2 of 2

Thread: Custom Widget in QListWidgetItem in QListWidget, QListWidgetItem doesn't resize

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Custom Widget in QListWidgetItem in QListWidget, QListWidgetItem doesn't resize

    i have a simple custom widget multiple times in a QListWidget.
    The custom widget contain some buttons and other suff and a QTableView,
    whitch is hidden in the first place.


    The button "Show/Hide TableView" will toggle the visibility of the QTableView.
    But when the visibility is set to true, the widget doesn't resize.
    In the next picture i clicked once the button "Show/Hide TableView" and the
    QTableView will be visible (small white bar), but the surrounding QGroupBox
    doens't change it's size and therefore also not the QListWidgetItem.


    What i need:
    - a widget based list view (i have used QListWidget)
    - custom widgets which may change in size (e.g by setting the visibility of childs)

    Can anyone help why my example doesn't work? (see Zip file)

    Attached Files Attached Files
    Last edited by TestCoder; 21st May 2020 at 16:44.

Similar Threads

  1. QListWidget and QListWidgetItem
    By Noxxik in forum Qt Programming
    Replies: 5
    Last Post: 3rd August 2011, 09:59
  2. Replies: 1
    Last Post: 22nd July 2010, 04:58
  3. Replies: 1
    Last Post: 11th May 2010, 02:52
  4. delete QListWidgetItem in QListWidget
    By sophister in forum Qt Programming
    Replies: 1
    Last Post: 10th May 2009, 15:52
  5. QListWidget add QListWidgetItem
    By fellobo in forum Qt Programming
    Replies: 3
    Last Post: 20th February 2006, 19:37


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.