As you can see, things that could have been hard to code as transparencies or sizes are ubiquitous thanks to the Qt Toolbox. I'd like to remark the class QIcon which transforms the image given into the appropiate size to the system in which is running. An example of this, extracted from Gems code is:
QIcon icon = QIcon("gem.png");
Being gem.png a 70x70 px image with transparent background. Besides, it's important to highlight the diferences between the different platforms: On Windows, the system tray icon size is 16x16; on X11, the preferred size is 22x22. The icon will be scaled to the appropriate size as necessary.
No hay comentarios:
Publicar un comentario