PyQtForSoftimage icon indicating copy to clipboard operation
PyQtForSoftimage copied to clipboard

Example update: Ensure a clean FileBrowser look

Open tcrowson opened this issue 13 years ago • 0 comments

By default (at least on my setup with 2012), the look and feel of a QFileDialog is a weird blend of the Windows and Softimage styles. But this is easily corrected using the following code at the point of calling the QFileDialog().

def launchFileBrowser(self): desktop = Application.Desktop desktop.SuspendWin32ControlsHook() self.fileDialog = QFileDialog(self) sourceDir = self.fileDialog.getExistingDirectory(None,'Choose a directory') ... desktop.RestoreWin32ControlsHook()

Thanks to Luc-Eric Rousseau for pointing this out!

tcrowson avatar Aug 27 '12 22:08 tcrowson