-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
03978cc
commit 646cb4e
Showing
4 changed files
with
49 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# QIconifyIcon | ||
|
||
[Iconify](https://iconify.design/) is an icon library that includes 150,000+ | ||
icons from most major icon sets including Bootstrap, FontAwesome, Material | ||
Design, and many more; each available as individual SVGs. Unlike the | ||
[`superqt.fonticon` module](./fonticon.md), `superqt.QIconifyIcon` does not require any additional | ||
dependencies or font files to be installed. Icons are downloaded (and cached) | ||
on-demand from the Iconify API, using [pyconify](https://github.com/pyapp-kit/pyconify) | ||
|
||
Search availble icons at <https://icon-sets.iconify.design> | ||
Once you find one you like, use the key in the format `"prefix:name"` to create an | ||
icon: `QIconifyIcon("bi:bell")`. | ||
|
||
## Basic Example | ||
|
||
```python | ||
from qtpy.QtCore import QSize | ||
from qtpy.QtWidgets import QApplication, QPushButton | ||
|
||
from superqt import QIconifyIcon | ||
|
||
app = QApplication([]) | ||
|
||
btn = QPushButton() | ||
btn.setIcon(QIconifyIcon("fluent-emoji-flat:alarm-clock")) | ||
btn.setIconSize(QSize(60, 60)) | ||
btn.show() | ||
|
||
app.exec() | ||
``` | ||
|
||
{{ show_widget(225) }} | ||
|
||
::: superqt.QIconifyIcon | ||
options: | ||
heading_level: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters