i have to control a QLineEdit input a runtime, 'cause i need to check the character typed by the user...i set a validator in this way:
Qt Code:
  1. QRegExp _regexp ( "control input" );
  2. _lineEdit->setValidator ( new QRegExpValidator ( _regexp , this ) );
To copy to clipboard, switch view to plain text mode 
so i can't do it in the way that u suggested before, maybe i have not been clear enough during in my problem explanation