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
Re: Widget for chat presentation
Quote:
I have seen QTextEdit and QTextBrowser documentation, but it is not good solution.
Thanks!
WHy not?
From QTextEdit docs:
Quote:
QTextEdit is an advanced WYSIWYG viewer/editor supporting rich text formatting using HTML-style tags.
And QTextBrowser:
Quote:
This class extends QTextEdit (in read-only mode), adding some navigation functionality so that users can follow links in hypertext documents.
Re: Widget for chat presentation
I think most people use QListViews/QListBoxes for this with custom item handling.
Re: Widget for chat presentation
Because QTextBrowser hasn't any functions for simple text appending.
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?
Re: Widget for chat presentation
Yes - QString!
But I want to append color text, smiles, etc...
Re: Widget for chat presentation
Quote:
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...
Re: Widget for chat presentation
Does anyone know any Open Source, QT4-based applications or librarys with chat dialog?
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.