Il 20/11/2015 14.56, Zoran Sibinovic ha scritto:
> Hi Luigi,
>
> I'm haveing problem with QFileDialog() to mine is that it not opens
> the right filediaog unbder XP if you
> write the code to get only the directory file dialog.
>
Hi Zoran,
probably, but I'm not sure and I'm not able to use C++, can be a Qt
problem; but I repeat me: I'm not sure.
Using another Qt approach, I think you can solve on WinXp. Below a (very
simple) snipped code to setting up the dialog
LOCAL oDialog
LOCAL nButtonPressed
WITH OBJECT oDialog := QFileDialog( ... )
:setOption( QFileDialog_DontUseNativeDialog, .T. )
:setOption( QFileDialog_ShowDirsOnly, .T. )
:setFileMode( QFileDialog_Directory )
END WITH
nButtonPressed := oDialog:exec()
IF nButtonPressed == QDialog_Accepted
oQtList := QDialog:selectedFiles()
ENDIF
Regards
Luigi