Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. BackgroundVisible property in TextArea, bug?

BackgroundVisible property in TextArea, bug?

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 674 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jagholin
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      Lucijan
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved