Results 1 to 5 of 5

Thread: Widget to display images and text ?

  1. #1
    Join Date
    Jan 2006
    Posts
    185
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Widget to display images and text ?

    I have a form (widget), I know I can show images and text next to each image, but I cannot scroll down or up in the form.

    I would like to have something that allows me to show images and text, I don't know how many images, but something like this (pretend the * are the images):

    ******** My name here
    ******** My information here
    ******** Age
    ******** other things
    ********

    ******** My name here
    ******** My information here
    ******** Age
    ******** other things
    ********


    As you can see that is the idea.

    What type of container, or what do I need to use to be able to display images and text at be able to scroll up or down ?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Widget to display images and text ?

    You can use QScrollArea for this.

  3. #3
    Join Date
    Jan 2006
    Posts
    185
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Where is QScrollArea in Designer ?

    I am looking for "QScrollArea" in the "designer", but I cannot find it... what is the name of it in designer ?

  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: Widget to display images and text ?

    QScrollArea is not accessible in Designer (unless you create a designer plugin for it). You may, however, create a QScrollArea by hand in code.
    J-P Nurmi

  5. #5
    Join Date
    Apr 2006
    Location
    San Francisco, CA
    Posts
    186
    Thanks
    55
    Thanked 12 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Widget to display images and text ?

    You can probably use a QListWidget, QTreeWidget, or QTableWidget to get what you want. They all provide the ability for scrollable lists of text/images, varying mainly in dimension.
    Software Engineer



Similar Threads

  1. A new widget
    By munna in forum Qt Programming
    Replies: 3
    Last Post: 6th January 2006, 04:12

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.