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

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.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded