好友
阅读权限40
听众
最后登录1970-1-1
|
楼主|
冥界3大法王
发表于 2022-6-30 20:10
执行qmake,重 编译了,没变化 。
后一个尝试过删除文件夹,不起作用。
就下面 加了个传剪贴板 模仿按键的
void SymbolView::on_comboBox_currentIndexChanged(const QString)
{
QRegularExpression re(".*(?=.dll)");
QRegularExpressionMatch match = re.match(ui->comboBox->currentText());
if (match.hasMatch()) {
QString matched = match.captured(0);
//ui->symbolLogEdit->setText(matched); //这个是赋值给底部的那个
mSymbolList->mSearchBox->setText(matched); //这个是赋值给右边的那个
//赋值给左边的那个不会(好友说那是两个独立的,外部编译的!)
QClipboard* clipboard = QApplication::clipboard();
clipboard->setText(matched);
Bridge::CopyToClipboard("这个也不行啊!");
keybd_event(VK_TAB,0,0,0);
keybd_event(VK_TAB,0,KEYEVENTF_KEYUP,0);
keybd_event(VK_TAB,0,0,0);
keybd_event(VK_TAB,0,KEYEVENTF_KEYUP,0);
keybd_event(VK_TAB,0,0,0);
keybd_event(VK_TAB,0,KEYEVENTF_KEYUP,0);
keybd_event(VK_TAB,0,0,0);
keybd_event(VK_TAB,0,KEYEVENTF_KEYUP,0);
keybd_event(VK_TAB,0,0,0);
keybd_event(VK_TAB,0,KEYEVENTF_KEYUP,0);
keybd_event(VK_CONTROL,0,0,0);
keybd_event('V', 0, 0 ,0);
keybd_event('V', 0, KEYEVENTF_KEYUP ,0);
keybd_event(VK_CONTROL,0,KEYEVENTF_KEYUP,0); //发送Ctrl+V
}
}
|
|