PDA

View Full Version : Widget to display images and text ?



probine
6th October 2006, 18:38
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 ?

jacek
6th October 2006, 20:04
You can use QScrollArea for this.

probine
9th October 2006, 10:34
I am looking for "QScrollArea" in the "designer", but I cannot find it... what is the name of it in designer ?

jpn
9th October 2006, 11:21
QScrollArea is not accessible in Designer (unless you create a designer plugin for it). You may, however, create a QScrollArea by hand in code.

gfunk
9th October 2006, 21:49
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.