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. Setting "background:" property on TextArea causes segfault

Setting "background:" property on TextArea causes segfault

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 150 Views
  • 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.
  • LorenDBL Offline
    LorenDBL Offline
    LorenDB
    wrote on last edited by
    #1

    I was surprised when I realized the other day that the reason an app was segfaulting on me was the seemingly innocuous statement in a TextArea:

    background: Rectangle {
        color: colors.window
    }
    

    (For context, see here.)

    At the suggestion of another developer, I tried setting various attributes of the Rectangle, setting background to an Item, and setting it to null. Nothing worked. Apparently, merely including the background: in the TextArea created the problem.

    I am on Ubuntu 20.04, using Qt 5.12.8. I also verified that the problem exists on Qt 5.15.1. Furthermore, I have tried importing different versions of QtQuick.Controls (up to 2.12), which did not work.

    1 Reply Last reply
    0
    • LorenDBL Offline
      LorenDBL Offline
      LorenDB
      wrote on last edited by
      #2

      Somebody fixed this for me.

      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