1.QLineEdit显示内容的格式函数: QLineEdit *lineEditPassword = new QLineEdit: lineEditPassword -> setEchoMode(QLineEdit::Password); 注: QLineEdit::Normal0 Display characters as they are entered. This is the default. QLineEdit::NoEcho1 Do not display a…
Socket通常也称作"套接字",应用程序通常通过"套接字"向网络发出请求或者应答网络请求. 本文介绍的是Qt中采用多线程Socket编程,由于工作的需要,开始接触Qt的socket编程.Qt里的example是个不错的教程,但是当我把代码移植到多线程的环境时就出问题了: QObject: Cannot create children for a parent that is in a different thread. 由于想要在线程中保留一个socket,以便维…