Comments (3)
@Dariusz1989 Could you provide some pseudo code/sample how you would like to invoke/use such a feature?
from qtawesome.
Hey
Yea I was just thinking about it. It seems like we may need second app? Or a python app... Could be python/pyside2.
But I suppose we need to give it path to a resource file & write in to it QPixmap/QIcon/QImage in to "that magical format" and then create tags/strings/etc .h/.cpp etc like the ones we have from Awesome library.
In general
- Open app
- Specify resource file
- Read icons in it
- remove/rename entries
- add entry
a. Specify either img path
b. Specify QPixmap/QImage/QIcon if we are dynamically generating something via painter/etc
c. Configurew tags/etc - Save rsc/ generate .h/.cpp/etc/etc
I'm using cmake that dynamically adds files to project, so we could probably do somethign similar so we can add multiple resourece/h/cpp and then probably create .h init for doing Q_RESOURCE_INIT stuff to generate them dynamically... ?
I could help doing the gui/writer/loading system, But I would need help with serializing/deserializing the input data in to that black bock rsc thini I tried understanding and gave up :- )
from qtawesome.
@Dariusz1989 Thanks for your input. Re-reading your suggestion multiple times, I don't see how this can be put into this project.
The 'magic format' is a Font file that contains (vector) icons. (QtAwesome just uses an existing font-file). It cannot convert pixmaps or other other graphics into a font file.
The 'magic' is nothing else then settings the correct font and the foreground/background colors. And drawing a certain glyph from this font.
The generator (written in Ruby), takes the meta-information from the FontAwesome project to generate the correct names for the glyphs into the c++ source/header files.
(* Adding other Font-icon files should be possible, but that's another wish already placed in the issue tracker.)
from qtawesome.
Related Issues (20)
- error: ‘qt_metatype_id’ is not a member of ‘QMetaTypeId<QtAwesomeAnimation*>’ HOT 2
- Problem with icon 4.7 HOT 4
- Class 'QtAwesome' has a constructor with 1 argument that is not explicit HOT 1
- Singleton class HOT 6
- QIcon::Mode and QIcon::State HOT 10
- On windows 10, the an icon in QPushButton that is selected isn't shown HOT 4
- Do you plan to update to the latest version? HOT 9
- macOS darkmode HOT 4
- Add qml support HOT 3
- FontAwesome 5 branch works only with one font
- Incompatibility with the new Qt 5.14 HOT 4
- Plans for a new release? HOT 7
- Rename master branch to main branch
- Can QtAwesome read Python fotnAwesome icons? HOT 6
- Font Awesome link is broken HOT 1
- How to use QtAwesome directly in the Qt Designer HOT 2
- Take existing QPixmap/QImage/QIcon as source? HOT 3
- Link in README.md is 404 HOT 1
- Backwards compatability with Qt5? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtawesome.