Solved Paint a QPixmap unto a QFrame?
-
Is it possible for me to paint an image unto a QFrame, i know there are other easy alternatives but just imagine that you had no other choice, how would you paint a QPixmap which has an image unto a QFrame, also is there perhaps another widget that would be suitable for displaying video output and also has the ability to easily show a image because i'm using the QFrame for video output and it works fine but i also need it to show an image
-
Just use a
QLabel
and itssetPixmap
function. -
I could use
styleSheets
to set a background image on the QFrame but that requires an actual image file on the computer right? the image that i want to show on the QFrame is extracted from the metadata of a music file. Is there a way forbackground-image
in stylesheets to accept a QPixmap obj rather than a resource file? -
Just use a
QLabel
and itssetPixmap
function. -
i ended up just adding a QLabel to the QFrame Layout whenever i want to display an image, and when i want to display a video, it switches to a QVideoWidget object