July 13, 2011

evergreen evergreen
Lab Rat
79 posts

[SOLVED] StyleSheets and HTML code

 

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

  1.     "QTextEdit  h1{"
  2.     "background-color: rgba(62, 78, 104, 160);"
  3.     "}"

No succes. Is it possible or just a dream?

Thanks

3 replies

July 13, 2011

Denis Kormalev Denis Kormalev
Lab Rat
1654 posts

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

July 13, 2011

evergreen evergreen
Lab Rat
79 posts

That’s disappointing.
Thanks for the answer anyway.

July 13, 2011

Andre Andre
Robot Herder
6417 posts

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

 
  ‹‹ QGridLayout: widgets don’t align properly      [SOLVED] ComboBox of CheckBoxes ››

You must log in to post a reply. Not a member yet? Register here!