Given data: QListview: length=desktop->width();
Problem statement(s):
1. You are dispaying some icons using Qlistview. The maximum allowed icon size is 48x48. Whenever the user shrinks the size of the window, the icons should also shrink to fit them selves within the viewport. Similarly the icon, should expand only till the max size as mentioned. In no case shall a scroll bar appear...assuming that there is only one row of Icons.
2. (Qlistview height=52 pixels - fixed...can't be changed) Now assume that the maximum icons that can occupy one whole row (the breadth of the desktop screen) is 10. If the user drags another Icon into this widget (thus making the total num to 11) the other Icons should shrink in size to accommodate this extra Icon.
2.1. Alternatively, You are allowed to add the scroll buttons (up & down) but the scroll bar itself should not be shown...i.e. the scrolling should be completely controlled by the buttons implying this, placed at the either end of the widget. Each scroll should be in steps of the icon size (fixed at 48 pixels)
Any answers....
Thanks..
Nupul
Bookmarks