Forums

OverviewFelgo 2 Support (Qt 5) › Align button label to right of icon

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #16522

    Kool

    Hi All,

    Is it possible to align the label of an AppButton to the right of an icon, rather than underneath?

    Many thanks!

    #16527

    Günther
    Felgo Team

    Hi!

    The AppButton is only designed to display the text underneath the icon if both icon and text are used.

    Still, you could use the icon property to display both an icon and additional text:

        AppButton {
          icon: IconType.home + " Text"
        }

    The drawback of this workaround is that the icon font settings also apply to the text then.

    Best,
    Günther from Felgo

    #16628

    Waeil

    hi every body
    <h3 class=”headline”>Align button label to right of icon  , but the font of this text how can i change it, when i use this way</h3>
    AppButton
    {

    icon: IconType.beer + qsTr(“Login”)
    iconSize: dp(20)
    FontLoader { id: btFont; source: “../../assets/fonts/Rakoon_PersonalUse.ttf” }

    fontFamily: btFont.name
    textSize: dp(20)
    flat: false
    }

    it refuse to be manipulated, unless i use text : qsTr(“Login”)

    #16629

    Günther
    Felgo Team

    Hi,

    it is not possible to change the font, because the icon requires the icon font to be used.

    AppButton does not support mixing an icon with a custom font text using the above workaround.

    Cheers,
    Günther

Viewing 4 posts - 1 through 4 (of 4 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
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support