UNICODE etc.

Peter Kuemmel kuemmel at coffeelogic.de
Mon Sep 6 13:12:44 CEST 2004


Ralf Habacker wrote:
> 
> msvc 6 or 7 ? I have no problem with msvc6 
> 

I think it has nothing to do with the compiler
(6 and 8(beta1) both with the SDK headers).

You should use the hello example. The allocating code in

/*!
   Constructs a monochrome pixmap which is initialized with the data in \e bits.
   This constructor is protected and used by the QBitmap class.
*/
QPixmap::QPixmap( int w, int h, const uchar *bits, bool isXbitmap ){
.
.
     data->bits = newbits;
.
.

is never reached - only PixMap::init(), where no allocating
and no setting of data->bits happens.

Maybe this helps:

         if ( data->bits &&  data->bitmap)
             delete[] ( data->bits );

But has every monochrome pixmap called the above constructor?

Peter



More information about the kde-cygwin mailing list