Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946

BackgroundVisible property in TextArea, bug?



  • So it seems to me that the backgroundVisible property of TextArea doesn't work(Qt 5.1):
    @import QtQuick 2.1
    import QtQuick.Controls 1.0
    Rectangle {

    //property alias textDocument: myArea.textDocument

    gradient: Gradient {
    GradientStop { position: 0.0; color: "lightsteelblue" }
    GradientStop { position: 1.0; color: "lightblue" }
    }

    TextArea {
    id: myArea

    backgroundVisible: true
    anchors.fill: parent
    }
    }@

    I would like to see a TextArea on gradient background, but it's not what i get(TextArea doesnt become transparent so i don't see Rectangle behind it).
    Bug?



  • Nope, just set it to false and you'll get the rectangle's background.


Log in to reply