Results 1 to 5 of 5

Thread: Difficult:Dynamic Icon size change?!?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2006
    Posts
    172
    Thanks
    30
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Lightbulb Difficult:Dynamic Icon size change?!?

    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
    Last edited by nupul; 10th April 2006 at 07:29.

Similar Threads

  1. How to change Icon size in QMenu?
    By alex chpenst in forum Qt Programming
    Replies: 4
    Last Post: 3rd September 2008, 14:16
  2. Replies: 1
    Last Post: 2nd August 2008, 15:46
  3. Replies: 2
    Last Post: 21st May 2007, 21:12
  4. change font size and button size of QMessageBox
    By nass in forum Qt Programming
    Replies: 6
    Last Post: 13th September 2006, 19:16
  5. tool bar icon size looking small???
    By darpan in forum Qt Tools
    Replies: 7
    Last Post: 31st March 2006, 16:38

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.