Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 10

Qt-interest Archive, March 2002
SV: RE: difference betwaeen...


Message 1 in thread

> Thanks, i find the soluce of my pb, i 'm stupid, i forgot an 
> * to define a pointer when i instance my class 
> ScalesBodyPopup* pop; :-p
> But i have an other pb: i have an other pb:
> i have a Qpixmap* poppix and it had a mask, when i code :
> setmask(poppix->mask();
> (setmask is for my class inherits of QWidget)
> i have this error when i compile:
> error C2248: 'QRegion::QRegion' : cannot access private 
> member declared in class 'QRegion'
>         qregion.h(109) : see declaration of 'QRegion::QRegion'
> 

If we set aside the code typos, the problem is the fact that
you pass a QBitmap pointer to a function that takes a const
QBitmap reference as argument. So doing:
setMask(*poppix->mask());
should fix it.
-- 
 [ signature omitted ]