Forums

OverviewFelgo 2 Support (Qt 5) › possible bug on TextArea

Tagged: 

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

    jrrobles79

    Im using  QtQuick.Controls 2.4, and  I don’t know if is an error on Felgo or QML, but when I try to set the font pixel size to the component TextArea I got the error ‘property has already been assigned’

     

    QQC2.TextArea {
                        id: taskTitle
                        property int maxChars: constants.maxCharsInReport
                        onTextChanged: if (length > maxChars)
                                           remove(maxChars, length)
                        wrapMode: TextEdit.WordWrap
                        placeholderText: ""
                        font: myriadProBold.name
                        font.pixelSize: sp(12)
                        color: iuboTheme.slate
                        placeholderTextColor: iuboTheme.lightGrey
                        inputMethodHints: Qt.ImhSensitiveData
                        property bool valid: taskTitle.length > 5
                    }

     

     

    #23633

    Alex
    Felgo Team

    Hi,

    use font.family instead to set the font name.

    Cheers,
    Alex

    #23634

    jrrobles79

    ups ! thank you I didn’t notice it.

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