Qt Commercial Support Weekly #13 - Literals in qmake and loading resources in QTextEdit - Digia Oyj

9 views
Skip to first unread message

Ville M. Vainio

unread,
Feb 11, 2012, 2:24:53 AM2/11/12
to leo-editor

Edward K. Ream

unread,
Feb 27, 2012, 7:39:20 PM2/27/12
to leo-e...@googlegroups.com
On Sat, Feb 11, 2012 at 1:24 AM, Ville M. Vainio <viva...@gmail.com> wrote:
> The loadresource thing could have applications in leo, in the future...
>
> http://www.digia.com/en/Blogs/Qt-blog/Andy-Shaw/Dates/2012/2/Qt-Commercial-Support-Weekly-13-Literals-in-qmake-and-loading-resources-in-QTextEdit/#.TzX-ppyuzsw.twitter

From the article:

QQQ
However, what may be news to some of you is how flexible [QTextEdit]
is when it comes to allowing you to insert images, a stylesheet or
even custom resources from various sources. To achieve this we need
to look at QTextDocument which is the class that provides the actual
document where the text editing takes place. Again, this is fairly
straightforward to use on the general level, but in this case we want
to focus on the protected virtual function - loadResource().

Interesting. Thanks for this.

Edward

Reply all
Reply to author
Forward
0 new messages