Quote Originally Posted by wenn32 View Post
now i really need help please!

it's easier than you imagine:

Qt Code:
  1. class MyScreen: public QWidget
  2. {
  3. Q_OBJECT
  4.  
  5. private:
  6. QLineEdit* password;
  7.  
  8. private slots:
  9. void write_to_file()
  10. {
  11. QString text = password->text();
  12. // write it to your file
  13. }
  14.  
  15. public:
  16. MyScreen()
  17. {
  18. password = new QLineEdit("" , this);
  19.  
  20. password->move(480,750);
  21. password->resize(370,30);
  22. password->setEchoMode(QLineEdit::Password);
  23. setWindowState(Qt::WindowFullScreen);
  24.  
  25. connect( password,SIGNAL(returnPressed()), this ,SLOT(write_to_file())
  26. }
  27.  
  28.  
  29. };
  30.  
  31.  
  32. int main(int argc, char* argv[])
  33. {
  34.  
  35. QApplication app(argc, argv);
  36.  
  37. NewSlot window;
  38. window.show();
  39.  
  40. return app.exec();
  41.  
  42. }
To copy to clipboard, switch view to plain text mode