Results 1 to 3 of 3

Thread: how to make fixed size cells dynamic fill the rows of qtable

  1. #1
    Join Date
    Jul 2010
    Posts
    20
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default how to make fixed size cells dynamic fill the rows of qtable


    i want realize a item list, the size of items in it are fixed, the items can fill the row when windows size changed, i tried icon mode of qlistwidget, it did not work that well ,so finally i chose qtablewidget, but i don't know how to make the items dynamic fill the table , that's no signal like sizeChanged() of QtableWidget,
    so is there any other better way to realize this kind of list?

    thanks, and sry for my poor english
    Last edited by vertusd; 23rd November 2010 at 02:34.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: how to make fixed size cells dynamic fill the rows of qtable

    Did you set the resizeMode on your QListView?

  3. #3
    Join Date
    Jul 2010
    Posts
    20
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: how to make fixed size cells dynamic fill the rows of qtable

    is it possiable to make QListView display constume item like QTableView (mutiple rows & mutiple cols)?

    i tried qlistwidget with it's icon mode .but i did not need the icon, i only want to show a costume widget contains images, labels ,and btns

Similar Threads

  1. fill cells in a tableWidget
    By edgar in forum Qt Programming
    Replies: 1
    Last Post: 27th August 2009, 18:55
  2. Replies: 2
    Last Post: 22nd September 2008, 09:22
  3. Replies: 10
    Last Post: 22nd August 2008, 01:29
  4. QTableWidget swapping rows with widgets in cells
    By dnnc in forum Qt Programming
    Replies: 1
    Last Post: 24th May 2007, 14:11
  5. QTable with expandable cells
    By sunil.thaha in forum Qt Programming
    Replies: 2
    Last Post: 20th April 2006, 12:42

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.