PDA

View Full Version : Creating moving icon set



avanindra
9th January 2011, 19:32
Hi All,

I want to display a list of image icons in a row. The images are selected from a directory. Here is what I have done:

I create dynamically a list of labels and add QpixMap of the selected images to the labels to display them like icons. Though,
what I want is to move the list of icons left or right with mouse scroll and I want to limit the number of image icons displayed according
to width of the current window.

Currently the window gets expanded horizontally according to the number images selected and I am not able to reduce the size of window
by boundary drag with mouse.

Also I want to show the icon partially(the prortion of the icon which is inside the window) if it start moving out of the window.

This utility is more or less similar to FSpot Photo-manager icon display.

I have been trying to accomplish it for many days now, I am totally stuck.
Can anyone suggest me some methods to do it.

Thanks
Avanindra