mhoover
7th March 2006, 19:09
This is probably a stupid mistake on my part, but every time I try to pass a blank QString, the compiler seems to think I have a QByteArray :
"no matching function for call to 'LemonadeCommandClient::LemonadeCommandClient(QByt eArray)'"
I've tried all kinds of different ways of passing it:
lemonade_status( QString::null ) (original)
lemonade_status( QString::Null() )
lemonade_status( QString( "" ) )
lemonade_status((QString)QString::Null())
This is a port from Qt3 to Qt4.
Here is my original constructor:
LemnAdeCmdClient::LemnAdeCmdClient(const QString server)
: LemonadeCommandClient(server.toAscii()),
connect_state(0),
command(QString::null),
lemonade_status(QString::null)
Also, here's another point of confusion on my part. I received this code from someone else. It looks like there's multiple inheritance going on here, but connect_state, command, and lemonade_status seem to be data members. Does that make sense? Also, it seems to accept the QString::null for command, but not for lemonade_status.
Any help?
"no matching function for call to 'LemonadeCommandClient::LemonadeCommandClient(QByt eArray)'"
I've tried all kinds of different ways of passing it:
lemonade_status( QString::null ) (original)
lemonade_status( QString::Null() )
lemonade_status( QString( "" ) )
lemonade_status((QString)QString::Null())
This is a port from Qt3 to Qt4.
Here is my original constructor:
LemnAdeCmdClient::LemnAdeCmdClient(const QString server)
: LemonadeCommandClient(server.toAscii()),
connect_state(0),
command(QString::null),
lemonade_status(QString::null)
Also, here's another point of confusion on my part. I received this code from someone else. It looks like there's multiple inheritance going on here, but connect_state, command, and lemonade_status seem to be data members. Does that make sense? Also, it seems to accept the QString::null for command, but not for lemonade_status.
Any help?