--- author: '' category: '' date: 2012/08/25 14:24:36 description: '' link: '' priority: '' slug: qt-mac-tips tags: pyqt,qt,python,programming title: Qt Mac Tips type: text updated: 2012/08/25 14:24:36 url_type: '' --- 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``.