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. QML Text Element background-color support for divs
QtWS25 Last Chance

QML Text Element background-color support for divs

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 1.3k 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.
  • P Offline
    P Offline
    PandaDev
    wrote on last edited by
    #1

    Hi

    I am creating an application which allows a user to design and view an HTML page in Qt Quick 2.0 using QML.

    My issue is that when I attempt to apply the style="background-color: #fff" option to the text of the Text Element it does not set the background color of that text to anything.

    Note: I cannot use a QWebView as this application will be deployed on Android.

    Thank You

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi,

      That seems to be a bug. See "this":https://bugreports.qt-project.org/browse/QTBUG-36837. As per the last comment the only place it works is with <table> and <body> tag.

      157

      1 Reply Last reply
      0
      • P Offline
        P Offline
        PandaDev
        wrote on last edited by
        #3

        Ah thanks man. :)

        Did not know that bug page existed.

        Will reference it in the future.

        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