I have a qml only app...
i found out experimentally that the limit is at 4096 for Y; but only in
a ListView; if i do regular images, then there is no such limit...
(which seems weird)
Slava Monich schreef op 2019-05-31 23:18:
Those who don't like the idea of hardcoding 3264 (or any other num
Those who don't like the idea of hardcoding 3264 (or any other number)
in their code, can query GL_MAX_TEXTURE_SIZE instead:
https://github.com/monich/harbour-foilpics/blob/master/src/FoilPicsImageProvider.cpp#L57
Cheers,
-Slava
when i use Image with big images, i use code like this:|
Imag
I actually did:
width: parent.width
asynchronous: true
cache: false
sourceSize.width: width
for this thing; the height it still like 8000 pixels high, even with
width == the jolla1 pixel width.
thing is, i get black for those long images, and an EGL Texture error.
short ones are done fine.
b
when i use Image with big images, i use code like this:|
Image {
onSourceSizeChanged: {
if( sourceSize.width > 3264 )
sourceSize.width = 3264
if( sourceSize.height > 3264 )
sourceSize.height = 3264
}
cache: