Qt 6.11 is out! See what's new in the release
blog
QPixmap Initialization
General and Desktop
3
Posts
2
Posters
1.4k
Views
1
Watching
-
hello, How can i initialise a QPixmap, that i declared in my header file, in my constructor with a Qvariant.
The QVariantis what i get when i access a picture in the registry.
I changed managed to change the QVariant into a QPixmap but i do not know how to use it to initialize the QPixmap in my header file.
The reason for the Global QPixmap is that i am going to use it in various methods.
-
I managed to find a way around it! :-)
I was using QLabel to display the picture, but for my project comes QLabel to its limits. I am now using QGraphicsView to continue my project.