Results 1 to 2 of 2

Thread: getting System icons

  1. #1
    Join Date
    Feb 2008
    Posts
    60
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question getting System icons

    Dear all,

    This is my very first post here. Happy to do this.

    I am getting 'My computer" icon using the following code.

    QIcon icon = ApplicationStyle->standardIcon ( QStyle::SP_ComputerIcon )


    my Question is,
    I didn't find a way to get 'My Documents" icon.
    am i missing something?

    Thanks in advance.

    Regards,
    jay.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    258
    Thanks
    22
    Thanked 19 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: getting System icons

    Well you could use QStyle::SP_DirIcon or QStyle::SP_DirHomeIcon. The function standardIcon() only provides a selection of icons. It does not have a standard icon for every scenario.

  3. The following user says thank you to momesana for this useful post:

    jay (11th March 2008)

Similar Threads

  1. System environment variable
    By fahlen in forum Qt Programming
    Replies: 4
    Last Post: 27th November 2007, 20:02
  2. QIcon Icons are not visible
    By harakiri in forum Qt Programming
    Replies: 1
    Last Post: 6th May 2007, 20:11
  3. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 14:15
  4. Suppressing menu icons on the Mac
    By Brandybuck in forum Qt Programming
    Replies: 2
    Last Post: 7th November 2006, 20:00
  5. Facing problem with tool bar icons
    By jnana in forum Qt Programming
    Replies: 4
    Last Post: 20th April 2006, 09:37

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.