是在打开的文件夹中自动选中某文件吧?不需要用鼠标。试试看这一段:bool OpenFolderAndSelectFile(const char *filePath){#ifdef Q_OS_WIN LPITEMIDLIST pidl; LPCITEMIDLIST cpidl; LPSHELLFOLDER pDesktopFolder; ULONG chEaten; HRESULT hr; WCHAR wfilePath[MAX_PATH+1] = ...