Had that same problem. Here's what your Python code might look like using the method Jo describes. This works for me.

/    def launchFileBrowser(self):
        # suspend control hooks so our filedialog looks normal
        desktop = Application.Desktop
        desktop.SuspendWin32ControlsHook()

        # call the filedialog
        self.fileDialog = QFileDialog(self)
sourceDir = self.fileDialog.getExistingDirectory(None,'Choose a directory')

        # restore control hooks
        desktop.RestoreWin32ControlsHook()/


*Tim Crowson
*/Lead CG Artist/

*Magnetic Dreams Animation Studio, Inc.
*2525 Lebanon Pike, Building C. Nashville, TN 37214
*Ph*  615.885.6801 | *Fax*  615.889.4768 | www.magneticdreams.com
[email protected]



On 10/19/2012 1:29 AM, César Sáez wrote:
Oh, so simple! :)

Thanks


On Fri, Oct 19, 2012 at 8:07 AM, jo benayoun <[email protected] <mailto:[email protected]>> wrote:

    Hey Cesar,
    there is no limitations nor bugs, its just softimage is setting
    new controls to use its style and qt lets do.  Use this and you
    should be safe.

    void        SuspendWin32ControlsHook
    
<http://download.autodesk.com/global/docs/softimage2013/en_us/sdkguide/si_cpp/classXSI_1_1Desktop.html#a93ffc147515c5cfbbe7d8f0b9d2aab4f>
 ()

    void        RestoreWin32ControlsHook
    
<http://download.autodesk.com/global/docs/softimage2013/en_us/sdkguide/si_cpp/classXSI_1_1Desktop.html#a890a0a0469659022bb54a1a10d8e108f>
 ()



    -- jo



    2012/10/18 César Sáez <[email protected] <mailto:[email protected]>>



        On Fri, Oct 19, 2012 at 7:26 AM, César Sáez <[email protected]
        <mailto:[email protected]>> wrote:

            Hi list,
            I'm starting to use PyQtForSoftimage and I'm having some
            issues with a QFileDialog, it works but the dialog get
            mixed with the softimage ones.
            Is there any way to make it work properly? Has something
            to do with *modal* dialog limitations? Just a known issue?

            I'm just calling a QFileDialog.getOpenFileName in a button
            signal.

            Thanks!





--
Signature


Reply via email to