Results 1 to 6 of 6

Thread: 4.1 to 4.1.1, qtextedit

  1. #1
    Join Date
    Feb 2006
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default 4.1 to 4.1.1, qtextedit

    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!

    Qt Code:
    1. QScrollBar* babar =AideBrow->verticalScrollBar();
    2. connect(babar,SIGNAL(sliderReleased()),AideBrow,SLOT(update()));
    To copy to clipboard, switch view to plain text mode 

    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
    Last edited by jey; 8th March 2006 at 09:59.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: 4.1 to 4.1.1, qtextedit

    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.
    Attached Files Attached Files

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: 4.1 to 4.1.1, qtextedit

    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.
    Quote Originally Posted by jacek
    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).

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: 4.1 to 4.1.1, qtextedit

    Quote Originally Posted by jpn
    Weird, trying to get the attachment by jacek gives me an error
    It should be OK now.

  5. #5
    Join Date
    Feb 2006
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: 4.1 to 4.1.1, qtextedit

    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...
    Attached Files Attached Files
    Last edited by jey; 9th March 2006 at 09:07.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: 4.1 to 4.1.1, qtextedit

    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.

Similar Threads

  1. QTextEdit Performance handling large paragraphs
    By netuno in forum Qt Programming
    Replies: 14
    Last Post: 1st September 2010, 23:58
  2. Drawing on QTextEdit
    By jgrauman in forum Qt Programming
    Replies: 3
    Last Post: 7th February 2009, 10:40
  3. QTextEdit slow to insert text
    By thomaspu in forum Qt Programming
    Replies: 4
    Last Post: 10th January 2008, 13:05
  4. QTextEdit API questions (plain text)
    By Gaspar in forum Qt Programming
    Replies: 4
    Last Post: 16th May 2006, 07:03
  5. Painting to QTextEdit
    By gesslar in forum Qt Programming
    Replies: 8
    Last Post: 18th February 2006, 19:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.