PDA

View Full Version : Realisation of QRegExp



unix7777
23rd October 2009, 13:59
Hi,

i'm trying ti release my first simple QT program but i'm confused in how to implement the
QRegExp class and how to set Signal Slots in the following program:

- i want the user to insert some text in the QTexedit,
- after that to enter sum word(string) in the Lineedit
- when press the QPushButton the matched string to be colored

i attached the project as .ZIP,
http://www.filefactory.com/file/a06c8ad/n/text_zip
THANK YOU A LOT TO EVERYONE WHO WILL SPEND HIS TIME TO HELP ME!!!

JohannesMunk
12th November 2009, 17:01
Problem still on?

I have not looked at your code. If you want to share code, just use the attachments option of the board.

For such a search field I have extended QSyntaxHighlighter. In a way similar to the syntaxhighlighter example. http://doc.trolltech.com/4.5/richtext-syntaxhighlighter.html

Let me know if you need more explicit help.

Johannes