Results 1 to 9 of 9

Thread: Using the "pixmap function" feature

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    300
    Thanks
    9
    Thanked 29 Times in 29 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Do you use the designer, or do you code your gui manually?

    Quote Originally Posted by wysota View Post
    I think you should use only one size of icons here but change the rest of the attributes (like the state). Qt will scale the icons if needed, so you might single sized pixmaps. At least I think so.
    That may be so, but it's not really the point. What if I didn't like how Qt scales the image? Or what if I want the small icons to really look different. Plus, Qt provides an interface to make it possible, so it should work. And it doesn't seem to.

    The QIcon simply takes the first file I give it and disregards the rest.
    Last edited by Michiel; 24th May 2007 at 13:17.
    "The strength of a civilization is not measured by its ability to wage wars, but rather by its ability to prevent them." - Gene Roddenberry

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Do you use the designer, or do you code your gui manually?

    Hard for me to argue with that. I only used different pixmaps for different states and let Qt handle the rest, so I don't know

  3. #3
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    300
    Thanks
    9
    Thanked 29 Times in 29 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Do you use the designer, or do you code your gui manually?

    So will I. I happen to like the way Qt scales images. Also, to my pleasant surprise, Qt4 has made improvements in automatically creating disabled-state icons (now in real gray scale, instead of just a shadow), so I'll let Qt do that automatically too.

    Well.. This simplifies things a bit. But it's still a bug.
    "The strength of a civilization is not measured by its ability to wage wars, but rather by its ability to prevent them." - Gene Roddenberry

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.