PDA

View Full Version : Find text



evgenM
12th September 2006, 09:43
i am trying to write searching in text edit
and found strange error

i have 2 signals and 1 slot
when i call pushButton->clicked() all work correct
but if i call textEdit->returnPressed() it search wrong
i can't understand why?

when i press "Enter" in lineEdit i call pushButton->clicked() -- why???

please check my code and help me

fullmetalcoder
12th September 2006, 10:06
I've written search and replace routines for text document when developping Edyuk and also created the associated dialogs... The last package (0.6.0, available on Sf.net) should fit your needs. If not feel free to use it as a base for your own search stuff...

Note: The search utilities are located in src/lib/qcodeedit, dialogs ui and implementation are in dialogs subfolder and searchreplace functions are in editor/qeditor.cpp

evgenM
12th September 2006, 10:16
i don't nead howto reply
i just want to correct error =]

please check code

jacek
12th September 2006, 14:17
when i press "Enter" in lineEdit i call pushButton->clicked() -- why???
Because that push button is a default button. Set its autoDefault and default properties to false.