OverviewFelgo 2 Support (Qt 5) › Customizing AppTabButton

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #18764


    I would like to customize AppTabButton so I can have a column with icon and text. This is what I tried but I am getting the following error:

    qrc:///qml/VPlayApps/controls/quick2/AppTabButton.qml:134: TypeError: Cannot read property ‘pressed’ of null

    AppTabButton {
        id: control
        property color colorOff: Theme.tintColor
        property color colorOn: "white"
        property int   spacingContentItem: 2
        property int   fontPixelSize: 12
        property int   iconSize: 20
        property bool  showText: true
        readonly property color selColor: selected ? colorOn : colorOff
        contentItem: Column{
            id: contentItem
            anchors.fill: parent
            spacing: aIcon.visible && aText.visible ? dp(spacingContentItem) : 0
                id: aIcon
                anchors.horizontalCenter: parent.horizontalCenter
                size: dp(iconSize)
                color: control.selColor
                textItem.font: control.iconFont
                icon: control.tabIcon
                visible: control.showIcon
                id: aText
                anchors.horizontalCenter: parent.horizontalCenter
                color: control.selColor
                font.pixelSize: sp(fontPixelSize)
                text: control.text
                visible: control.showText



    Felgo Team


    thanks for reporting the issue!

    We’ve added a fix for this, which will be part of next update.


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