QPixmap:: scaled: Pixmap is a null Pixmap
-
I do not know why i am getting above warning. Please assist
@
MainWindow w;
w.setStyleSheet("background-image:url(./file/leftp.svg)");@
-
Because the file path you specified is not correct and so the image could not be loaded.
You could add your image to qt resource system or you have to specify the full path.
Check this :
http://doc.qt.io/qt-5/resources.html -
I also get tons of this message:
qpixmap::scaled: Pixmap is a null pixmap
The thing is, this message is completely useless, since there is no hint about which pixmap it is.
I don't have the source and debug libs of qt installed.
Does anyone know if there is a way to find out which pixmap creates these messages? -
Hi and welcome to devnet,
Check all the QPixmap object you create using files. Where are the path of these files pointing to ?