Trolltech Home | QSA-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

QSA-interest Archive, February 2006
I believe I have found a bug in QSA V1.1.3


Message 1 in thread

Hi

I believe I have found a bug in QSA V1.1.3. The following line throws an 
error bool variable gets "ok" gets set to false

ok = var.type() == (QVariant::Type)*(char*)p[i].typeExtra; at line 456 in 
the file quickobjects.cpp

I have checked out the values on both sides of the "==" operator. 
var.type() returns 19 and (QVariant::Type)*(char)p[i].typeExtra returns a 
value of 14. Clearly these values are not equal. The above line is from 
static QSObject executeSlot( QSEnv *env, QObject *qobj, const 
QValueList<QuickMetaData> &mds )


---

Regards
John Dean,

Klarälvdalens Datakonsult
www.klaralvdalens-datakonsult.se

To unsubscribe - send "unsubscribe" in the subject to qsa-interest-request@xxxxxxxxxxxxx


Message 2 in thread

John Dean wrote:

> I believe I have found a bug in QSA V1.1.3. The following line throws 
> an error bool variable gets "ok" gets set to false
> ok = var.type() == (QVariant::Type)*(char*)p[i].typeExtra; at line 456 
> in the file quickobjects.cpp
> I have checked out the values on both sides of the "==" operator. 
> var.type() returns 19 and (QVariant::Type)*(char)p[i].typeExtra 
> returns a value of 14. Clearly these values are not equal. The above 
> line is from static QSObject executeSlot( QSEnv *env, QObject *qobj, 
> const QValueList<QuickMetaData> &mds )

Hi, John.

I'm not sure I quite understand what the problem is. The ok variable in 
this line is supposed to be false if the two values are not equal. What 
is the slot, what arguments does it take, and what are you passing into it?

best regards,
Eskil

To unsubscribe - send "unsubscribe" in the subject to qsa-interest-request@xxxxxxxxxxxxx