Hi,
what istelling you? I bet your path is wrong. As a solution use Qt's resource system to embed the image to your application or use a valid path...Qt Code:
QPixmap p; qWarning() << p.load("demo.jpg"); qWarning() << p.isNull();To copy to clipboard, switch view to plain text mode





Reply With Quote
Bookmarks