-1
QApplication.postEvent(object, press)

I want to simulate the keypress and mousepress in the select file dialog, which is popped up by clicking file input in the QWebView. I don't know what the object is. Any ideas on how to obtain it?

nymk
  • 3,323
  • 3
  • 34
  • 36
fox
  • 36
  • 2

1 Answers1

0

Make a stock QFileDialog in another project, and dump its Object Tree.

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

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

Hope that helps.

phyatt
  • 18,472
  • 5
  • 61
  • 80