my main goal right now is to forbid some chars entering in line edit.I want to forbid (!@#$%^&*()) chars, cause i do use SQL Database and someone can damage my database without filters for this chars.I tried to use setInputMask but in this way i can use only alphabets.I need to use '-' sign too for some names like "Anna-Maria". So finally, setInputMethodHints is not working and i don't know what to do. I just need to forbid some "dangerous" chars. If you can, please provide me some source code. Thank you in advance.
Tell me more
×
Stack Overflow is a question and answer site for
professional and enthusiast programmers. It's 100% free, no registration required.