QPixmap Initialization
-
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.
-
You assign a value to it just like a simple variable. Perhaps you need to elaborate on what you are doing and how it fails.
-
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.