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


OverviewFelgo 3 Support (Qt 5) › resolution resizing bug

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #14502

    Juan Carlos

    Sample : OneCard

    Win version

    I have found that resizing to bigger screens via resolution menu or expanding via screen border doesn’t redraw the window unless you force an invalidate (That is moving the window or minimize and show.etc.)..


    Felgo Team

    Hi Juan Carlos!

    Which operating system version (Windows) and compiler/kit are you using?



    Juan Carlos

    Windows 7 ultimate 64

    toolchain MinGW 5.3.0 32bit



    Felgo Team

    Thanks, we will have a look. Does it only happen for the OneCard example or also with other projects?
    To initially set the window size to your desired value, you can use the GameWindow screenWidth/screenHeight properties.



    Juan Carlos

    It happens with other demos and also with other compilers for instance

    demo squabby and compiler MSVC2015 64bits


    What is more, I was testing MultiResolutionImage withotu success in my own project.

    And I have used squabby demo to test something that maybe is related..

    There are two images bgMainmenu.png in that demo:  one in assets/img/bgMainmenu.png assets/img/+hd/bgMainmenu.png

    I’ve painted  a “sd” with gimp over the first image and “hd” over the second in order to test when it changes from one to the other.


    It doesn’t matter the resolution I used in the menu or the changes in the window border. The image is ever hd.




    Felgo Team

    The chosen quality the MultiResolutionImage uses is not affected by the selected resolution on desktop.
    Changing the resolution in the menu changes only the window size and the scaling of UI elements.

    A different image version is only used on different devices.




    Felgo Team

    Hi Juan,

    for an additional explanation on this topic:

    the images are selected at app start from the resolution of the screen and cannot be changed at runtime. There’s nothing to do about this, runtime change doesnt work with file selectors.


    However, to simulate different images, the selected images can be changed in c++ before the qml app is started by calling this before engine.load():

    // for sd images use the value 1, for hd 2, for hd2 4

    Cheers, Chris


Viewing 7 posts - 1 through 7 (of 7 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