On Wed, 1 May 2013 04:19:52 -0500 "Edward K. Ream" <[email protected]> wrote:
> On Fri, Jul 13, 2012 at 3:57 PM, tfer <[email protected]> wrote: > > > I was wondering if the Qt widget used for body text has a provision for > > background images? > > > > Sorry for the delay in responding. Leo's body pane is a QTextBrowser: > http://qt-project.org/doc/qt-4.8/qtextbrowser.html > a subclass of QTextEdit. QTextBrowser also inherits from QFrame and > QWidget, so there *might* be a way to have a background image "leak" > through the text. > > Edward > QTextEdit#richTextEdit { background-image: url('/home/tbrown/Desktop/cow2.jpg'); } in the stylesheet gives the effect attached (i.e. it works). If you wanted node specific backgrounds Leo would have to start setting an attribute on the body widget, probably the gnx, so you could do QTextEdit#richTextEdit[leo_gnx='tbrown.20130430222443.19340'] { background-image: url('/home/tbrown/Desktop/cow2.jpg'); } Cheers -Terry -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
<<attachment: del.jpg>>
