Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] StyleSheets and HTML code
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] StyleSheets and HTML code

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 2.2k 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.
  • E Offline
    E Offline
    evergreen
    wrote on last edited by
    #1

    Hello,

    I use some stylesheet in my application. I would like to know if they also be performed on html in the application.

    I explain : I work on a QTextEdit which has some rich text. I would like to know if it's possible to apply a style sheet on this rich text.
    I tried
    @
    "QTextEdit h1{"
    "background-color: rgba(62, 78, 104, 160);"
    "}"@

    No succes. Is it possible or just a dream?

    Thanks

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2

      Nope, it is not possible. QSS is used for widgets, not for their data.

      1 Reply Last reply
      0
      • E Offline
        E Offline
        evergreen
        wrote on last edited by
        #3

        That's disappointing.
        Thanks for the answer anyway.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          Changed [CLOSED] tag to [SOLVED], since the topic is not actually closed.

          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