why if i execute:
Qt Code:
To copy to clipboard, switch view to plain text mode
don't show image
qt is install on linux in static mode whitout demo and example...
why if i execute:
Qt Code:
To copy to clipboard, switch view to plain text mode
don't show image
qt is install on linux in static mode whitout demo and example...
I think that you are doing something wrong when you create object QImage, use this code and see what load function return
Qt Code:
QImage image; bool result = image.load( imgPath );To copy to clipboard, switch view to plain text mode
I would say you are using a relative path to the image and QImage simply can't find it.
the imgPath is
/Users/user/Desktop/img.jpg
is absolute path not relative
when i do
Qt Code:
QImage image; bool result = image.load( imgPath ); cout <<"result ="<<result;To copy to clipboard, switch view to plain text mode
result =0.
Is the image readable to your application? Try using QFile and get the attributes of the image file. And sorry, but check via
Qt Code:
To copy to clipboard, switch view to plain text mode
qWarning return true...
Ok, what't the output ofand maybe the jpg is defect, that you may open it with gimp etc. but qt fails. So for debug open the file and save it as png and try to load this in Qt.Qt Code:
qWarning() << fi.permissions();To copy to clipboard, switch view to plain text mode
jpg are correct and qWarning output is
30583
Sorry if I bother you, but then it must be in your code. Last debug question (with your image):Qt Code:To copy to clipboard, switch view to plain text mode
don't work? Here on my linux machine it works as expected.
ok thanks the problem was installation of qt... the static mode don't load jpg becouse it find pluging thanks for help
Bookmarks