Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › MultiResolutionImage and not supported resolution(240 x 320) issue

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8585

    Marcin

    Hello,
    I follow this tutorial:
    http://felgo.com/doc/howto-balloon-game/

    Everything works apart from device with really low resolution (to test used LG E430 240×320, in Landscape mode width is 320px).
    When I debug on that device don’t see any balloons.
    In the end the issue is with MultiResolutionImage(Balloon.qml- btw works with device 320×480)

      MultiResolutionImage {
        id: sprite
        source: "../../assets/img/balloon.png"
        anchors.centerIn: parent
      }

     

    If I switch to Image:

    Image {
        id: sprite
        source: "../../assets/img/balloon.png"
        anchors.centerIn: parent
      }

    it works.
    I suppose it happens because such low resolution is not supported out of the box(3 versions are supported: sd, hd an hd2 and they start with higher res).

    For now I fixed that by adding in my main.cpp :
    if (QApplication::desktop()->screenGeometry().width() < 480) {
    vplay.setContentScaleAndFileSelectors(1);
    }
    doing this I force the fallback settings if resolution is too low.

    Maybe it would be a good idea to inform somewhere in the docs what to do with low resolution and MultiResolutionImage ?
    I am not seeing that edge case like this should be handled 100% but at least switch to default settings ? Use the sd (480×320) ?

    Linux 64, Qt 5.4, Felgo 2.0.

    #8647

    Christian
    Felgo Team

    Hi Marcin,

    thanks for reporting this issue! We’ve fixed it, and with the next update the default sd resolution will be used on ultra-low-res devices too.

    Cheers, Chris

    • This reply was modified 9 years, 3 months ago by  Christian.
Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded