But why doesn't the HTML code work with spaces?
But why doesn't the HTML code work with spaces?
Because HTML trimms multiple whitespaces into one. If you want to keep them, transform each of the multiple spaces to " " (keep single ones as they are).
Thanks for all the help so far, but now I'm stuck. I get a crash when the program starts.
The problem seems to be with the creation of the red/green part.
The point of the program is to press enter, get a random text, and directly start writing the same thing (marked red/green if wrong/right).
I attach a tgz with the code.
It's produced with dev-c++ in windows.
Last edited by Morea; 10th February 2006 at 21:30.
Ah, is it perhaps the infinite loop I get with all the textChanged signals that are emitted, and the KollaText() slot that receives it and then again emits a textChanged signal..
It might be! But I doesn't seem possible to change to a keypressed event or something like that. Any ideas, or should I just use the code that cesar sent earlier?
Last edited by Morea; 10th February 2006 at 21:39.
Now it works fine! I strongly recomend anyone using Dev-C++ to rebuild everything once in a while, otherwise you might have parts that is not properly updated.
Bookmarks