OverviewFelgo 2 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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support