QTEXTEDIT FIND BACKWARD
I don't understand why the find forward is working well but not the find backwark (flag QTextDocument::FindBackward) that skips the first previous occurence of a search). How to solve this issue?
Hi and welcome to devnet,
can you post some examples of code that shows your problem? Sorry but we don't have yet a crystal ball :)
void MainWindow::rechercheNext(QString texte,bool fBackward,bool fCaseSensitive, bool fWholeWord)
flag = flag | QTextDocument::FindCaseSensitively;
flag = flag | QTextDocument::FindWholeWords;
If in the textedit document there is the following text (a "a" character on each line as shown)
When the cursor is at the end of the document, the find backward mode skips one "a" on 2
you're right, I tried with my code and the behaviour is the same you described.
I'm with Qt 5.5.0 on OS X 10.10.
IMO you could open a bugreport
I have reported the bug. I will feed back when the issue is solved
Can you share the bug report link ? That will make it easier for others to find it