Results 1 to 3 of 3

Thread: using .gif or .mng ?

  1. #1
    Join Date
    Mar 2007
    Posts
    28
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default using .gif or .mng ?

    I'm trying to create a chat dialog with HTML text display.

    Something that troubled my mind is there is no support for .gif, I need it for smileys animation on that chat dialog.

    The manual says I have to recompile Qt, and add support for gif. Since this is quite an effort to recompile & reconfiguring everything.
    I need to know why Trolltech prefers .mng over .gif ?

    Because when I use .mng on QTextBrowser, there is no picture / animation displayed, I think this is because the HTML doesn't support .mng. Even only very few internet browser support .mng.

    So what should I do ? Do I need to recompile Qt 4, is there any other way to use animation, besides QMovie ?
    Because a QMovie could not be used on top of QPushButton.

  2. #2
    Join Date
    Dec 2006
    Posts
    211
    Thanks
    27
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: using .gif or .mng ?

    If you want GIF support in Qt You have to reconfigure your qt with -qt-gif command because by default GIF support is not available in Qt.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: using .gif or .mng ?

    Quote Originally Posted by mnemonic_fx View Post
    I need to know why Trolltech prefers .mng over .gif ?
    GIF - MNG
    patented - Free
    8bit colours - 24bit colours
    1bit alpha - 8 bit alpha

    Need I say more?

    BTW. "HTML" doesn't "support" anything. It's a browser that has or doesn't have support for a particular file format.

Similar Threads

  1. .gif and .tiff image type in QListView in QT3.3.5
    By darpan in forum Qt Programming
    Replies: 5
    Last Post: 18th March 2006, 04:31

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.