Results 1 to 3 of 3

Thread: QTextEdit and gif image

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2007
    Posts
    166
    Thanks
    16
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QTextEdit and gif image

    Hi all,

    I'm using Qt 4.3.1 OSE.

    I want to know is there a way to animate the .gif image's in QTextEdit box.
    When I put them they are not moving...

    Thanks in advance.

    The Storm

  2. #2
    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: QTextEdit and gif image

    See wiki: Animation in QTextEdit (notice also the discussion page).
    J-P Nurmi

  3. #3
    Join Date
    Aug 2007
    Posts
    166
    Thanks
    16
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTextEdit and gif image

    Mmm this is interesting it seems that it set for image the state of the animation. Cool I will try it. Thanks

    EDIT: It seems that this class from the link have memory leak. I think it is in this line:
    Qt Code:
    1. document()->addResource(QTextDocument::ImageResource, urls.value(movie), movie->currentPixmap());
    To copy to clipboard, switch view to plain text mode 

    We add each frame new Resource but we don't clear the old one...
    Last edited by The Storm; 1st September 2007 at 00:43.

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
  •  
Qt is a trademark of The Qt Company.