[Interest] Simple TextEdit question

Eckhard Jokisch qt at eckhard-jokisch.de
Wed Jan 11 10:54:12 CET 2012


On 01/11/12 09:14, Graham Labdon wrote:
> Hi
> 
> I have a dialog with a QTextEdit element. I have not implemented any
> extra functionality and find that I can cut formatted text from the Qt
> TextEdit demo and paste it into my TextEdit widget.
> 
> However, this does not work for images, so my question is – what do I
> have to do in order to be able to paste images into my TextEdit?

Without having tried it my first guess is that you need to use the
insertHtml(..) function.
To be able to play with drag&drop you`ll need to implement the according
d&d functions as described in the d&d documentation.

Cheers

Eckhard

> 
>
> 
> Thanks
> 
>  
> 
> Graham
> 
>  
> 
> 
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest




More information about the Interest mailing list