Hi,

I have a QTextEdit which has HTML code with CSS properties, all works fine except images backgrounds...

Qt Code:
  1. myTextEdit->setHtml(
  2. "<html>"
  3. "<head>"
  4. "<style type='text/css'>"
  5. "body { background-image: url(:/images/plate.png); }"
  6. "</style>"
  7. "</head>"
  8.  
  9. "<body>"
  10. "<h1>Hello World!</h1>"
  11. "</body></html>"
  12. );
To copy to clipboard, switch view to plain text mode 

This: background-image: url(:/images/plate.png); doesn't work as expected...

Am i doing something wrong? I want to set a background image from resource file to a specific html element.... So the <body> is just a test...

ps. i want to use CSS in html not the Qt Style Sheet system, because i need to style html elements!

Any suggestion? Thanks