Results 1 to 9 of 9

Thread: Widget for chat presentation

  1. #1
    Join Date
    Jan 2006
    Posts
    36
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Widget for chat presentation

    Hello all!
    I want to write chat dialog (similar to the ICQ's or Skype's dialog).
    What widget can I use for chat presentation?
    Requirements:
    * Color text support
    * Different text slyles support
    * Hyperlinks support
    * Simple text appending
    I have seen QTextEdit and QTextBrowser documentation, but it is not good solution.
    Thanks!

    P.S.
    OS : Windows XP
    Compiler : gcc-3.4.3 (mingw)
    QT : QT-4.1.0

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Widget for chat presentation

    I have seen QTextEdit and QTextBrowser documentation, but it is not good solution.
    Thanks!
    WHy not?
    From QTextEdit docs:
    QTextEdit is an advanced WYSIWYG viewer/editor supporting rich text formatting using HTML-style tags.
    And QTextBrowser:
    This class extends QTextEdit (in read-only mode), adding some navigation functionality so that users can follow links in hypertext documents.

  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: Widget for chat presentation

    I think most people use QListViews/QListBoxes for this with custom item handling.

  4. #4
    Join Date
    Jan 2006
    Posts
    36
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Widget for chat presentation

    Because QTextBrowser hasn't any functions for simple text appending.

  5. #5
    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: Widget for chat presentation

    Quote Originally Posted by krivenok
    Because QTextBrowser hasn't any functions for simple text appending.
    What about the "append(const QString &text);" slot?

  6. #6
    Join Date
    Jan 2006
    Posts
    36
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Widget for chat presentation

    Yes - QString!
    But I want to append color text, smiles, etc...

  7. #7
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Widget for chat presentation

    But I want to append color text, smiles, etc...
    But you said simple text...

    For smileis you could do it like many others, some character sequnses will be replaces with images, as for color text, that is not simple text but rich text.
    Bare in mind, you will have to code some stuff your self you know...
    You can't expect everything to be ready made by Qt...

  8. #8
    Join Date
    Jan 2006
    Posts
    36
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Widget for chat presentation

    Does anyone know any Open Source, QT4-based applications or librarys with chat dialog?

  9. #9
    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: Widget for chat presentation

    Quote Originally Posted by krivenok
    Does anyone know any Open Source, QT4-based applications or librarys with chat dialog?
    uuu.... you're trying to make it too easy for yourself! :P Try PSI, maybe they ported (or are porting) it to Qt4.

Similar Threads

  1. QDockWidget inside another widget in the center?
    By Antebios in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2010, 07:06
  2. Widget Focus
    By navi1084 in forum Qt Programming
    Replies: 6
    Last Post: 29th September 2008, 10:22
  3. Playbutton functionality
    By uchennaanyanwu in forum Qt Programming
    Replies: 5
    Last Post: 31st July 2008, 22:29
  4. How to Open & Close a Widget ?!!
    By Fatla in forum Qt Programming
    Replies: 6
    Last Post: 13th June 2008, 20:39
  5. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 10:35

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.