bonjour,
j'ai rencontré une erreur quand je récris un "handler" qui hérite QXmlDefaultHandler .
voilà le code :
l'erreur est:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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; } }
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 !
Partager