Results 1 to 5 of 5

Thread: Action editor and MultiSize Icons

  1. #1
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Action editor and MultiSize Icons

    Hi,

    coding manually is possible to write code like...
    Qt Code:
    1. QIcon fileOpenIcon;
    2. fileOpenIcon.addFile(":/small_icons/file_open.png", QSize(22, 22));
    3. fileOpenIcon.addFile(":/normal_icons/file_open.png", QSize(32, 32));
    4. fileOpenIcon.addFile(":/large_icons/file_open.png", QSize(64, 64));
    5.  
    6. ...
    7.  
    8. actionFileOpen->setIcon(fileOpenIcon);
    To copy to clipboard, switch view to plain text mode 

    It's possible to do the same thing in action editor?

    Thanks and sorry for my english
    A camel can go 14 days without drink,
    I can't!!!

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Action editor and MultiSize Icons

    Hmm, I can't find a way to do it within Qt Designer. Icon support was improved in 4.4 by adding support for different icon states but I still can't see any support for multiple sizes. I think this is worth sending a suggestion to Trolltech...
    J-P Nurmi

  3. #3
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Action editor and MultiSize Icons

    Quote Originally Posted by jpn View Post
    I think this is worth sending a suggestion to Trolltech...
    How can I do this thing?
    A camel can go 14 days without drink,
    I can't!!!

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Action editor and MultiSize Icons

    Search Task-Tracker to see if such suggestion already exists. If not, you can send a new suggestion via this form.
    J-P Nurmi

  5. The following user says thank you to jpn for this useful post:

    mcosta (28th May 2008)

  6. #5
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Action editor and MultiSize Icons

    I have sent a suggestion to trolls.
    This is the link
    http://www.trolltech.com/developer/t...6&method=entry
    A camel can go 14 days without drink,
    I can't!!!

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.