UNICODE etc.
Ralf Habacker
ralf.habacker at freenet.de
Wed Sep 1 17:08:59 CEST 2004
On Monday 30 August 2004 14:39, Peter Kuemmel wrote:
> Here some fixes:
>
> UNICODE:
> In winuser.h is the LPTSTR macro (WCHAR* or CHAR*) defined,
> also the A/W endings of the functions.
> There are qt functions for conversions declared (qstring.h),
> void* must be casted to LPTSTR:
> #if defined(Q_OS_WIN32)
> extern Q_EXPORT QString qt_winQString(void*);
> extern Q_EXPORT const void* qt_winTchar(const QString& str, bool addnul);
> extern Q_EXPORT void* qt_winTchar_new(const QString& str);
> extern Q_EXPORT QCString qt_winQString2MB( const QString& s, int len=-1 );
> extern Q_EXPORT QString qt_winMB2QString( const char* mb, int len=-1 );
> #endif
>
> Main widget title:
> The original Trolltech hello example has the title
> "Qt says hello" and not "hello" - the name of the application.
> So I've changed the code in setMainWidget.
>
>
> qpixmap_win.cpp:
> It seems there is a bug in void QPixmap::deref().
How do you have detected that this is a bug ? As far as I have seen, is this
place the only one, where data->bits is deleted and if it is commented out,
the memory allowed in the constructor will not be free'd until the
application stops.
>
> Cheers,
> Peter
More information about the kde-cygwin
mailing list