Results 1 to 4 of 4

Thread: StandardPixmap is missing important icons

  1. #1
    Join Date
    Jul 2007
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Post StandardPixmap is missing important icons

    If you want to do a system-independant toolbar, you need save / print / cut / copy / paste / exit ... icons and they have a different look on each system. Is it true that they're missing in QStyle::standardIcon? Is Trolltech going to implement a bigger set of icons in future?

    Thanks...
    Claudio

  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: StandardPixmap is missing important icons

    You could try sending a suggestion to the Task-Tracker.
    J-P Nurmi

  3. #3
    Join Date
    Feb 2006
    Location
    USA
    Posts
    142
    Thanks
    24
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: StandardPixmap is missing important icons

    Qt did something strange with this. I had been getting used to using the method you're talking about to fill my apps with standard icons independent of architecture... then I found that QIcon has its own set of standard icons in addition to QStyle. Why did they do that??? At any rate, for all the icons you're talking about, most of them exist in QIcon::fromTheme. For my apps, I use the theme icon when I can, and I pass a QStyle "standardIcon" as a fallback to QIcon::fromTheme.

    In my opinion, putting the same functionality in two different places with different levels of implementation is... well... dumb? Don't they both pull icons from the same place?

    The below are most of the strings identifying the icons you're looking for for the QIcon::fromTheme function:

    edit-clear The icon for the clear action.
    edit-copy The icon for the copy action.
    edit-cut The icon for the cut action.
    edit-delete The icon for the delete action.
    edit-find The icon for the find action.
    edit-find-replace The icon for the find and replace action.
    edit-paste The icon for the paste action.
    edit-redo The icon for the redo action.
    edit-select-all The icon for the select all action.
    edit-undo The icon for the undo action.
    Life without passion is death in disguise

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: StandardPixmap is missing important icons

    Quote Originally Posted by KShots View Post
    For my apps, I use the theme icon when I can, and I pass a QStyle "standardIcon" as a fallback to QIcon::fromTheme.
    Yes, that is a reasonable approach.

    Quote Originally Posted by KShots View Post
    In my opinion, putting the same functionality in two different places with different levels of implementation is... well... dumb? Don't they both pull icons from the same place?
    Not all platforms have support for icon themes. Application developers need to be aware that QIcon::fromTheme() can fail to produce a result.
    It is then the choice of the developer if they fall back to icons provided with their application, e.g. from a qt resource, or from the style.

    Cheers,
    _

Similar Threads

  1. Icons missing => segmentation fault
    By antonio.r.tome in forum Qt Programming
    Replies: 4
    Last Post: 8th March 2006, 16:30
  2. Toolbar & Icons missing
    By raphaelf in forum Qt Tools
    Replies: 2
    Last Post: 27th February 2006, 22:19
  3. Missing action icons
    By ReilenBlaeyze in forum KDE Forum
    Replies: 4
    Last Post: 20th February 2006, 12:05

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.