Re: Hard crash in QFileDialog (Qt/WinFree)

Angus Leeming <[email protected]>
Newsgroups gmane.comp.kde.devel.cygwin
Message-ID <[email protected]>
Peter Kümmel wrote:
> Angus Leeming wrote:
> 
>> Hi guys.
>>
>> I've compiled the attached files with:
>>
>>   $ moc -o trial_moc.cpp trial.h
>>   $ g++ -g -I$HOME/qt3/include -o trial trial.cpp trial_moc.cpp \
>>       -L$HOME/qt3/lib -lqt-mt
>>
>> On launching the resulting trial.exe, a little push button pops up.
>> Press the button and a QFileDialog is displayed.
>> Press the "Up folder" button to the right of the "Look in:" widget 
>> which should be showing you're in "My Documents".
>> Select (double click on) the "Desktop" folder, to enter this directory.
>> Press "a" on the keyboard...
>>
>> BOOM.
>>
>> and now, I'm off to bed.
>> Good night,
>> Angus
> 
> 
> Hi Angus,
> 
> your bug reports are really superb!
> A workaround is in cvs now.

Unfortunately, it doesn't compile. At least, not for me:

 
       J:\MinSYS\home\Angus\qt3>set 
PATH=J:\MinSys\home\Angus\qt3\bin;J:\MinGW\bin;C:\WINDOWS\system32;C:\WINDOWS 
 
 
J:\MinSYS\home\Angus\qt3>set QMAKESPEC=win32-g++ 
 
            J:\MinSYS\home\Angus\qt3>mingw32-make all 
                  cd src\moc && mingw32-make 
                        mingw32-make[1]: Entering directory 
`J:/MinSYS/home/Angus/qt3/src/moc'          g++ -c -O2 -fno-exceptions 
-fno-rtti  -DUNICODE -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE 
-DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -DQT_NODLL -I"..\..\include" 
-I"..\tools" -I"." -I"." -I"J:\MinSys\home\Angus\qt3\mkspecs\win32-g++" -o 
.\qfile_win.o ..\tools\qfile_win.cpp 
     ..\tools\qfile_win.cpp: In function `bool qt_file_access(const 
QString&, int)': ..\tools\qfile_win.cpp:64: error: invalid conversion from 
`const short unsigned int*' to `const wchar_t*' 
                            ..\tools\qfile_win.cpp:64: error: 
initializing argument 1 of `int _waccess(const wchar_t*, int)' 
                                                  ..\tools\qfile_win.cpp: 
In static member function `static bool QFile::remove(const QString&)': 
 
..\tools\qfile_win.cpp:86: error: invalid conversion from `const short 
unsigned int*' to `const wchar_t*' 
               ..\tools\qfile_win.cpp:86: error:   initializing argument 1 
of `int _wunlink(const wchar_t*)' 
                          ..\tools\qfile_win.cpp: In member function 
`virtual bool QFile::open(int)':     ..\tools\qfile_win.cpp:218: error: 
invalid conversion from `const short unsigned int*' to `const wchar_t*' 
 
..\tools\qfile_win.cpp:218: error:   initializing argument 1 of `int 
_wopen(const wchar_t*, int, ...)' 
                 ..\tools\qfile_win.cpp:263: error: invalid conversion from 
`const short unsigned int*' to `const wchar_t*' 
                           ..\tools\qfile_win.cpp:263: error: 
initializing argument 1 of `FILE* _wfopen(const wchar_t*, const wchar_t*)' 
 
..\tools\qfile_win.cpp:263: error: invalid conversion from `const short 
unsigned int*' to `const wchar_t*' 
              ..\tools\qfile_win.cpp:263: error:   initializing argument 2 
of `FILE* _wfopen(const wchar_t*, const wchar_t*)' 
                         ..\tools\qfile_win.cpp: In member function 
`virtual Q_ULONG QFile::size() const': 
                                           ..\tools\qfile_win.cpp:457: 
error: invalid conversion from `const short unsigned int*' to `const 
wchar_t*' 
..\tools\qfile_win.cpp:457: error:   initializing argument 1 of `int 
_wstat(const wchar_t*, _stat*)' 
                 mingw32-make[1]: *** [.\qfile_win.o] Error 1 
                       mingw32-make[1]: Leaving directory 
`J:/MinSYS/home/Angus/qt3/src/moc'           mingw32-make: *** [src-moc] 
Error 2

Angus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.