Qt Mac Tips
My team has been working on porting some PyQt stuff to Mac OSX, and we have run into several Qt bugs, sadly. Here are two, and the workarounds we found.
Native dialogs are broken.
Using QFileDialog.getExistingDirectory we noticed the following symptoms:
If you do nothing, the dialog went away on its own after about 20 seconds.
After you used it once, it may pop up and disappear immediately. Or not.
Solution: use the DontUseNativeDialog option.
Widgets in QTreeWidgetItems don't scroll.
When you use Widgets inside the items of a QTreeWidget (which I know, is not a common case, but hey, it happens), the widgets don't scroll with the items.
Solution: use the -graphicssystem raster
options. You can even inject them into
argv
if the platform is darwin
.