Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8488985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:42:01+00:00 2026-06-10T21:42:01+00:00

I’m reading a tutorial on PySide and I was thinking , do I need

  • 0

I’m reading a tutorial on PySide and I was thinking , do I need to find my own icons for every thing or is there some way to use some built in icons . That way I wouldn’t need to find an entire new set of icons if I want my little gui to run on another desktop environment .

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T21:42:03+00:00Added an answer on June 10, 2026 at 9:42 pm

    What you need is Pyside QIcon.fromTheme function.
    Basicaly it creates QIcon object with needed icon from current system theme.

    Usage:

    undoicon = QIcon.fromTheme("edit-undo")

    “edit undo” – name of the icon “type”/”function” can be found here

    This works on X11 systems, for MacOSX and Windows check QIcon documentation
    QIcon.fromTheme

    Edit Inserting this from the website, since last time it was a broken link.

    static PySide.QtGui.QIcon.fromTheme(name[, fallback=QIcon()])

    Parameters:

    • name – unicode
    • fallback – PySide.QtGui.QIcon

    Return type:

    PySide.QtGui.QIcon

    Returns the PySide.QtGui.QIcon corresponding to name in the current icon theme. If no such icon is found in the current theme
    fallback is returned instead.

    The latest version of the freedesktop icon specification and naming specification can be obtained here:

    • http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
    • http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html

    To fetch an icon from the current icon theme:

    undoicon = QIcon.fromTheme("edit-undo")
    

    Or if you want to provide a guaranteed fallback for platforms that do not support theme icons, you can use the second argument:

    undoicon = QIcon.fromTheme("edit-undo", QIcon(":/undo.png"))
    

    Note

    By default, only X11 will support themed icons. In order to use themed icons on Mac and Windows, you will have to bundle a compliant theme in one of your PySide.QtGui.QIcon.themeSearchPaths() and set the appropriate PySide.QtGui.QIcon.themeName() .

    See also

    • PySide.QtGui.QIcon.themeName()
    • PySide.QtGui.QIcon.setThemeName()
    • PySide.QtGui.QIcon.themeSearchPaths()
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I know there's a lot of other questions out there that deal with this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.