I have 2 images resouce files one for 96dpi, one for 120dpi. and i want to load these diffrent resouce(qrc)files at run time.
can u help me with example.i have searched it,but don't get exactly ,what i have to do.
I have 2 images resouce files one for 96dpi, one for 120dpi. and i want to load these diffrent resouce(qrc)files at run time.
can u help me with example.i have searched it,but don't get exactly ,what i have to do.
Do you create two rcc files along side your application or do you build both resources into the executable?
Cheers,
_
yes, i want to load resourc file at run time ,this is because i m try to develop high dpi application .and in my application i m set image at label.but after high dpi my image looks streched.thats y i want to load two diffrent resouce file at run time(normal, high dpi)with diffrent image sizes .
thanku
That would be possible with both images compiled in so I wanted to check if this is about loading resource files :-)
http://doc.qt.io/qt-5/resources.html...nary-resources
Cheers,
_
how to add images in .rcc file.
I am afraid I don't understand the question.
You add images to a Qt resource file like any other file.
Maybe you should read the whole section in the documentation on resources?
Cheers,
_
bartarya.parul (22nd July 2016)
Bookmarks