Highlighting word by word
	
	
		Hi :)
What i want is this : open a text file, have a pointer for words in the text, move it (the pointer) word by word (sequentially from the beginning till end of the text) , and highlight these words one by one according to the movement of the pointer ----> as a result the output will show text and the highlighting is moving word by word from the beginning of the text with some delay.
So :rolleyes: i did open text file using qtextedit .. that's it :(
my questions are: 
- choosing qtextedit in this case is correct or not?? if not what should i use??
- how to use pointer for words??? 
- how to do the highlighting????
i'm finding here a lot of possibilities but i'm confused 
Any help or advice will be greatly appreciated
thnx :o
	 
	
	
	
		Re: Highlighting word by word
	
	
		Access the QTextDocument that underlies the QTextEdit.   You can then create a QTextCursor into the document and use something like:
to highlight the current word, and:
to move along a word.
	 
	
	
	
		Re: Highlighting word by word
	
	
		Thank you so much ChrisW67 for your help,
so pointer for words done , but moving the pointer and highlighting is still not clear for me :(