簡體   English   中英

在 QWebView 中單擊文件輸入時,如何找到彈出的 QFiledialog?

[英]How can I find the popped up QFiledialog when I click file input in the QWebView?

QApplication.postEvent(object, press)

我想在選擇文件對話框中模擬按鍵和鼠標按下,該對話框是通過單擊QWebView文件輸入彈出的。 不知道對象是什么關於如何獲得它的任何想法?

在另一個項目中創建一個庫存QFileDialog ,並轉儲其對象樹。

http://doc.qt.io/qt-5/qobject.html#dumpObjectTree

http://doc.qt.io/qt-5/objecttrees.html

希望有幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM