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


OverviewFelgo 3 Support (Qt 5) › Center NavigationBar title item

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


    Hi all,

    I’m wondering if it’s possible to center the NavigationBar title item? At the moment it’s pushed to the left and I’m wondering if it’s possible to center it.

    Minimal example:

    import Felgo 3.0
    import QtQuick 2.0
    GameWindow {
        id: gameWindow
        activeScene: scene
        screenWidth: 960
        screenHeight: 640
        Scene {
            id: scene
            width: 480
            height: 320
            NavigationBar {
                id: tabBar
                anchors {top: scene.gameWindowAnchorItem.top; left: scene.gameWindowAnchorItem.left; right: scene.gameWindowAnchorItem.right}
                backButtonVisible: true
                titleItem: AppText {
                    text: "Training"
                    color: Theme.backgroundColor

    Many thanks!


    Felgo Team

    Hi Kool!

    To match platform-specific UI guidelines, the title is e.g. displayed centered on iOS and left-aligned on Android. To always center the title, you can set:

          Theme.navigationBar.titleAlignLeft = false

    Günther from Felgo



    If that’s the platform-specific guideline for iOS vs Android, I’ll probably keep it as it is rather than always center.

    But it’s good to know.

    Thanks Gunther.

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