Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 2 Support (Qt 5) › About the difference between Felgo Live Client and the actual display.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #23753

    森林木

    I found that the size of the element displayed on the Felgo Live Client is very different from the size displayed on the real device, which is much larger on the Felgo Live Client.The key is that the display ratios on both sides are not the same.

    Has anyone encountered this problem, thanks!

    E.g.

    AppButton {
        minimumWidth: 100
        minimumHeight: 100
        text:"HELLO"
    }

     

    #23761

    Alex
    Felgo Team

    Hi,

    the AppButton uses Qt Quick Controls internally, which could be affected by platform scaling settings that the Live Client applies by default.

    Please use dp() values instead, like dp(100), to get resolution and density independent sizes.

    Best,
    Alex

    #23772

    森林木

    Thank you, it has been resolved.

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.