Qt-interest Archive, May 2008
QTextBrowser Image Bug/Problem
Message 1 in thread
Hi All,
I am using Qt 4.4, vs 2005, windows XP.
I think this is a bug.
Every time I send an image to a QTextBrowser widget using the method insertHtml()
And sending this kind of parameters:
<img src="imagePath" />
For
some reason the first time it shows the correct image, but if I send a
different image next, it will keep showing the same first image.
For some reason the same image is getting same in memory or something, and then it will keep showing that image.
Please confirm if this is a bug, I am going crazy and cant find what could be the problem.
If it is a bug, can someone suggest a work around or submit a quick patch?
Thanks a lot!
CJC
_________________________________________________________________
With Windows Live for mobile, your contacts travel with you.
http://www.windowslive.com/mobile/overview.html?ocid=TXT_TAGLM_WL_Refresh_mobile_052008
Message 2 in thread
Shouldn't you be using void setHtml ( const QString & text ), not
insertHtml? Sounds like you're just adding the new image onto the end,
and wondering why it's still showing the first image (that's still
sitting in the text stream). If not, usually a quick code example of
what you're doing helps people track down what's going wrong.
Christopher Jimenez wrote:
> Hi All,
> I am using Qt 4.4, vs 2005, windows XP.
> I think this is a bug.
> Every time I send an image to a QTextBrowser widget using the method
> insertHtml()
> And sending this kind of parameters:
> <img src="imagePath" />
> For some reason the first time it shows the correct image, but if I
> send a different image next, it will keep showing the same first image.
> For some reason the same image is getting same in memory or something,
> and then it will keep showing that image.
> Please confirm if this is a bug, I am going crazy and cant find what
> could be the problem.
> If it is a bug, can someone suggest a work around or submit a quick patch?
> Thanks a lot!
> CJC
> ------------------------------------------------------------------------
> With Windows Live for mobile, your contacts travel with you. Connect
> on the go.
> <http://www.windowslive.com/mobile/overview.html?ocid=TXT_TAGLM_WL_Refresh_mobile_052008>
--
[ signature omitted ]
Message 3 in thread
Hi,
Everything works fine with the insertHTML. I have send all kinds of formated text and it works ok.
When it comes to the images is where I have the problem.
Have you test it by your self? How is it working for you?
Thanks!
CJC
> Date: Mon, 12 May 2008 12:51:46 +1000
> From: bill.king@xxxxxxxxxxxxx
> To: cjimenez16@xxxxxxxxxxx
> CC: qt-interest@xxxxxxxxxxxxx
> Subject: Re: QTextBrowser Image Bug/Problem
>
> Shouldn't you be using void setHtml ( const QString & text ), not
> insertHtml? Sounds like you're just adding the new image onto the end,
> and wondering why it's still showing the first image (that's still
> sitting in the text stream). If not, usually a quick code example of
> what you're doing helps people track down what's going wrong.
>
> Christopher Jimenez wrote:
> > Hi All,
> > I am using Qt 4.4, vs 2005, windows XP.
> > I think this is a bug.
> > Every time I send an image to a QTextBrowser widget using the method
> > insertHtml()
> > And sending this kind of parameters:
> > <img src="imagePath" />
> > For some reason the first time it shows the correct image, but if I
> > send a different image next, it will keep showing the same first image.
> > For some reason the same image is getting same in memory or something,
> > and then it will keep showing that image.
> > Please confirm if this is a bug, I am going crazy and cant find what
> > could be the problem.
> > If it is a bug, can someone suggest a work around or submit a quick patch?
> > Thanks a lot!
> > CJC
> > ------------------------------------------------------------------------
> > With Windows Live for mobile, your contacts travel with you. Connect
> > on the go.
> > <http://www.windowslive.com/mobile/overview.html?ocid=TXT_TAGLM_WL_Refresh_mobile_052008>
>
>
> --
> Bill King, Software Engineer
> Trolltech, Brisbane Technology Park
> 26 Brandl St, Eight Mile Plains,
> QLD, Australia, 4113
> Tel + 61 7 3219 9906 (x137)
> Fax + 61 7 3219 9938
> mobile: 0423 532 733
>
> --
> 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/
>
_________________________________________________________________
Get Free (PRODUCT) RED™ Emoticons, Winks and Display Pics.
http://joinred.spaces.live.com?ocid=TXT_HMTG_prodredemoticons_052008
Message 4 in thread
Also,
The code was working perfectly fine with the 4.3
After the update to the 4.4 the problem start happening. I would really appreciated if someone could try to reproduce the bug.
BTW is doing the same thing with the setHTML() method. I just test it
Thanks
CJC
From: cjimenez16@xxxxxxxxxxx
To: bill.king@xxxxxxxxxxxxx
CC: qt-interest@xxxxxxxxxxxxx
Subject: RE: QTextBrowser Image Bug/Problem
Date: Mon, 12 May 2008 03:52:16 +0000
Hi,
Everything works fine with the insertHTML. I have send all kinds of formated text and it works ok.
When it comes to the images is where I have the problem.
Have you test it by your self? How is it working for you?
Thanks!
CJC
> Date: Mon, 12 May 2008 12:51:46 +1000
> From: bill.king@xxxxxxxxxxxxx
> To: cjimenez16@xxxxxxxxxxx
> CC: qt-interest@xxxxxxxxxxxxx
> Subject: Re: QTextBrowser Image Bug/Problem
>
> Shouldn't you be using void setHtml ( const QString & text ), not
> insertHtml? Sounds like you're just adding the new image onto the end,
> and wondering why it's still showing the first image (that's still
> sitting in the text stream). If not, usually a quick code example of
> what you're doing helps people track down what's going wrong.
>
> Christopher Jimenez wrote:
> > Hi All,
> > I am using Qt 4.4, vs 2005, windows XP.
> > I think this is a bug.
> > Every time I send an image to a QTextBrowser widget using the method
> > insertHtml()
> > And sending this kind of parameters:
> > <img src="imagePath" />
> > For some reason the first time it shows the correct image, but if I
> > send a different image next, it will keep showing the same first image.
> > For some reason the same image is getting same in memory or something,
> > and then it will keep showing that image.
> > Please confirm if this is a bug, I am going crazy and cant find what
> > could be the problem.
> > If it is a bug, can someone suggest a work around or submit a quick patch?
> > Thanks a lot!
> > CJC
> > ------------------------------------------------------------------------
> > With Windows Live for mobile, your contacts travel with you. Connect
> > on the go.
> > <http://www.windowslive.com/mobile/overview.html?ocid=TXT_TAGLM_WL_Refresh_mobile_052008>
>
>
> --
> Bill King, Software Engineer
> Trolltech, Brisbane Technology Park
> 26 Brandl St, Eight Mile Plains,
> QLD, Australia, 4113
> Tel + 61 7 3219 9906 (x137)
> Fax + 61 7 3219 9938
> mobile: 0423 532 733
>
> --
> 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/
>
Get Free (PRODUCT) RED™ Emoticons, Winks and Display Pics. Check it out!
_________________________________________________________________
Stay in touch when you're away with Windows Live Messenger.
http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_messenger_052008
Message 5 in thread
On 12.05.08 05:16:52, Christopher Jimenez wrote:
>
> Also,
> The code was working perfectly fine with the 4.3
> After the update to the 4.4 the problem start happening. I would really appreciated if someone could try to reproduce the bug.
Then you should send a small self-contained example that reproduces the
problem for you. Don't expect people to start writing this themselves,
they all have limited time and playing with existing code is a lot
easier than writing something from scratch.
Andreas
--
[ signature omitted ]