Bonjour,
j'ai une liste de nom qui m'apparait comme suit :
PETIT COCHON (UN)
je voudrais si c'est le cas remplacer ce string par :
UN PETIT COCHON
voila mon code :
Il ne reconnait pas le (UN), pourquoi ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 QString fiche; fiche = (listefiche->currentItem()->text()); if (fiche.contains(("(UN)", Qt::CaseIsensitive))) { fiche = fiche.replace(" (UN)", ""); fiche = ("UN" + fiche); }
cordialement
Partager