prb de "switch quantity not an integer"
bonjour,
j'ai rencontré une erreur quand je récris un "handler" qui hérite QXmlDefaultHandler .
voilà le code :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| bool XmlHandler::startElement(const QString &namespaceURI,
const QString &localName,
const QString &qName,
const QXmlAttributes &attributes)
{
switch(qName)
{
case "path":
...
break;
case "g":
...
break;
}
} |
l'erreur est:
C:/Documents and Settings/xyang/Mes documents/Projets Qt/xmlPTest/XmlTest/xmlhandler.cpp:50: error: switch quantity not an integer
je comprend pas pourquoi il faut intéger dans la condition de switch ?
comment le corriger?
Merci !