OverviewFelgo 2 Support (Qt 5) › AppTextEdit background color


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



    I have the following code:

    Rectangle {
            id: descrPlaceholder
            width: imageViewer.width
            height: dp(150)
            anchors.topMargin: dp(10)
            anchors.left: imageViewer.left
            visible: true
            color: ST.editBackground()
            border.color: ST.borderClr()
            border.width: dp(2)
            AppTextEdit {
                id: descrption
                placeholderText: qsTr("Describe the Friend:")
                cursorColor: ST.cursorClr()

    The point was to get a background color through the Rectangle. At this point I have the background color and I can see the placeholder text, but the Rectangle masks the AppTextEdit so I can’t write anything. Hi can I solve this problem, or how can I add a background color to AppTextEdit without using Rectangle?

    Thank you for your help.


    Felgo Team


    add this to your AppTextEdit, as currently it has no size (the placeholder is still visible as it does not clip by default):

    anchors.fill: parent
    verticalAlignment: Text.AlignTop


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