View Single Post
Old 06-01-2025, 07:07 PM   #44
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,707
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
You can also try using an empty QWidget:

w=QWidget()

and using that as the parent parameter in getOpenFileName()

I do something similar in my KindleImport plugin (which also only uses the FileOpen widget):

https://github.com/dougmassay/kindle...ilities.py#L45

It uses the wrapped QApplication from plugin_utils.py, but that should not be strictly necessary to get things to work.
DiapDealer is online now   Reply With Quote