赞
踩
#include <QApplication> #include <QClipboard>
QClipboard * cb = QApplication::clipboard(); cb->setText(m_lineEdit->text());