PDA

View Full Version : 4.1 to 4.1.1, qtextedit



jey
8th March 2006, 03:22
Hi!

When updating to 4.1.1, the new dlls doesn't do all the stuff that was working before, eg updating the widget doesn't work anymore since I've updated!



QScrollBar* babar =AideBrow->verticalScrollBar();
connect(babar,SIGNAL(sliderReleased()),AideBrow,SL OT(update()));


If I put the 4.1 dll in the directory everything is ok!
Does anyone know what it could be?

Thanks

EDIT : it seems that the scrollbar doesn't send the signal it used to do with 4.1

jacek
8th March 2006, 15:34
Strange, I've made a simple .ui file with a QScrollBar and QPushButton (the QScrollBar::sliderReleased() signal is connected to QPushButton::toggle()). In the preview, when I release the slider, the button is toggled, so that signal is emitted. I use Qt 4.1.1 under PLD Linux.

jpn
8th March 2006, 16:02
Weird, trying to get the attachment by jacek gives me an error:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, support@b-one.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Strange, I've made a simple .ui file with a QScrollBar and QPushButton (the QScrollBar::sliderReleased() signal is connected to QPushButton::toggle()). In the preview, when I release the slider, the button is toggled, so that signal is emitted. I use Qt 4.1.1 under PLD Linux.
I did a same kind of test and I can assure it works fine for me too (Qt 4.1.1/WinXP).

jacek
8th March 2006, 17:27
Weird, trying to get the attachment by jacek gives me an error
It should be OK now.

jey
9th March 2006, 07:09
Ok thanks for looking at that, I've tried today lots of things, in fact the scrollbar is ok, I think it's a different behaviour of the QTextEdit, when updating..
My problem is an awfull behaviour of pictures when inserted with html code, and with a style="float: left;" for example, so that there is text next to the picture on the right... I've tried to make a small example file, but since I load the page from a html file, even if I get the code from that page with ->toHtml(), I cannot diplay those picts has it is with my main program!!
What's weird is that the QTextEdit deals quite good with images if they are on their own line, but not if next to the text..
The turnaroud of the problem was the update tricks, but the 4.1.1 update of QTextEdit don't work as the 4.1.. now I can't use an activeX browser because I use QT open source...
If I manage to release an example so that someone could look at it...



EDIT : here it is attached, so you can test it : with the 4.1 dll in the executable directory, (qtcore4.dll, qtgui4.dll (the problem seems to came from that one) it works, with the 4.1.1 it doesn't...))
you can have a look on what happen to pictures if you scroll a little, an what the update() do with 4.1 and 4.1.1

I'm interested to know if so could reproduce that...

jacek
9th March 2006, 12:48
I tried your program (with few modifications to make it compile) and this problem occurs also on my system (Qt 4.1.1, PLD Linux). Images that have "float: left" or "float: right" style aren't redrawn correctly after scrolling. Either this feature is not supported in Qt or it's a bug.