在类1中构造一类2的对象(窗口2);
在类1对象(窗口1)中,传递了OriginalImage给窗口2的_oImage后,窗口2的构造函数中的_oImage为空;
if(_oImage.isNull())
qDebug() << "c:Null Image";
else
qDebug() << "c:have Image";
返回c: Null Image
但是在窗口2的resizeEvent中却不为空。。。
if(_oImage.isNull())
qDebug() << "r:Null Image";
else
qDebug() << "r:have Image";
返回r:have Image
因为我在窗口2的构造函数中要用到_oImage的信息,所以。。。怎么办呢?
[ 此帖被yangfanxing在2009-12-25 19:49重新编辑 ]