Hi, so are you using resources? Do you have a .qrc file?
If you are using resources it should be something more like this:
QPixmap NoPreViewpix
(":/images/NoPreView.png");
QPixmap NoPreViewpix(":/images/NoPreView.png");
To copy to clipboard, switch view to plain text mode
Resources are compiled into the application binary.
If you are not using resources, the more appropriate way would be:
QPixmap NoPreViewpix(QApplication::applicationDirPath() + "/images/NoPreView.png");
To copy to clipboard, switch view to plain text mode
Notice the missing ":" (used only with resources). In addition, the current working directory might not be reliable as it's not necessarily the same directory where the application binary is located in.
Bookmarks