<table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top" style="font: inherit;"><p>You've understanding it fine. But the colon in the filename means, it's a complied-in resource. While you develop/test, I would suggest taking the colon out and using the file system. </p>
<p>All you have to do without using style sheets is subclass QTextEdit then re implement draw, draw your water mark, then cal the base class paint via QTextEdit::paintEvent()<br><br><br></p>
<p>-J</p>
</td></tr></table> <div id="_origMsg_">
<div style="font-family:arial, helvetica, sans-serif:font-size:10pt">
<br />
<div style="font-family:times new roman, new york, times, serif;font-size:12pt">
<font size="2" face="Tahoma">
<hr size="1">
<b>
<span style="font-weight:bold;">From:</span>
</b>
graham labdon <graham.labdon@hotmail.co.uk>; <br>
<b>
<span style="font-weight:bold:">To:</span>
</b>
<interest@qt-project.org>; <br>
<b>
<span style="font-weight:bold:">Subject:</span>
</b>
[Interest] QTextEdit and Style sheets <br>
<b>
<span style="font-weight:bold;">Sent:</span>
</b>
Mon, Mar 12, 2012 10:03:30 AM <br>
</font>
<br>
<table cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td valign="top" style="font:inherit;"><div dir='ltr'>
Hi<br>I am trying to set a background image on a QTextEdit using setStyleSheet -<br><br><span style="color:#800000;">textEdit</span><span style="color:#000000;">-></span>setStyleSheet<span style="color:#000000;">(</span><span style="color:#800080;">QString</span><span style="color:#000000;">::</span>fromUtf8<span style="color:#000000;">(</span><span style="color:#008000;">"background-image:</span><span style="color:#c0c0c0;"> </span><span style="color:#008000;">url(:/images/Chrysanthemum.png);background-attachment:</span><span style="color:#c0c0c0;"> </span><span style="color:#008000;">fixed"</span><span style="color:#000000;">));</span><br><br>However, this doe not work.<br><br>Am i misunderstanding the documentation or is it not possible?<br><br>Thanks<br> </div></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>