Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, January 2007
QwtPlot (or QWidget) in QTextDocument


Message 1 in thread

Hi!
Is there an easy way to add a widget (a QwtPlot) or a QPainter drawn  
object into a QTextDocument?
Knut

-- 
 [ signature omitted ] 

Message 2 in thread

Knut Finstad wrote:
> Hi!
> Is there an easy way to add a widget (a QwtPlot) or a QPainter drawn
> object into a QTextDocument?

If the image data is static the easiest way to generate QPixmap
and insert it in QTextDocument via
QTextDocument::addResource().

> Knut
> 
> --Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
> 
> -- 
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
> 
> 

Regards
  Dmitry.

--
 [ signature omitted ] 

Message 3 in thread

Hi!
Yes I know, but I would like to have support for different resolutions.  
The static pixmap does not scale to well when the TextDocument is printed.

Now I let the user select if he would like to have the pixmaps optimized  
for print or screen, and set the resolutions of the pixmap thereafter, but  
I would like to have a more general solution.
Knut

> Knut Finstad wrote:
>> Hi!
>> Is there an easy way to add a widget (a QwtPlot) or a QPainter drawn
>> object into a QTextDocument?
>
> If the image data is static the easiest way to generate QPixmap
> and insert it in QTextDocument via
> QTextDocument::addResource().
>
>> Knut
>>
>> --Using M2, Opera's revolutionary e-mail client:  
>> http://www.opera.com/m2/
>>
>> --
>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
>> "unsubscribe" in the subject or the body.
>> List archive and information: http://lists.trolltech.com/qt-interest/
>>
>>
>
> Regards
>   Dmitry.
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with  
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>



-- 
 [ signature omitted ]