Results 1 to 2 of 2

Thread: Creating list with images and widgets laid out

  1. #1
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    310
    Thanks
    10
    Thanked 31 Times in 25 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Creating list with images and widgets laid out

    Hi,

    I would like to create a member list for an administration program of our sports club, showing a photo and some detailed information next to the photo. The source data is in a database.

    See the image in attachment for a sample (created using MS Access).

    How could I do that in Qt ? I know how to use a table view and show images in it, but afaik the other information cannot be arranged nicely around the photo.

    Best regards,
    Marc
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Creating list with images and widgets laid out

    You can always create a QWidget subclass. I guess that would be the easiest way to start.
    Create a widget for the contents, and a parent one that can add or remove such content widgets.
    Use a model/view pattern to make it easier to manage data.

    But it is possible to do this with a tableview too. The editor becomes a more complex widget (custom delegate), or the photo spans more rows (changes to the view itself?).

Similar Threads

  1. How to list the images with QT 4.4
    By xxthink in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 22nd December 2011, 09:08
  2. Help me on creating a List Widget...
    By Bong.Da.City in forum Newbie
    Replies: 50
    Last Post: 11th September 2010, 14:51
  3. Replies: 2
    Last Post: 20th August 2010, 13:20
  4. How do I display a list of images?
    By Morea in forum Qt Programming
    Replies: 2
    Last Post: 23rd November 2007, 08:49
  5. Replies: 3
    Last Post: 10th April 2006, 19:04

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.