bonjour,
je souhaite afficher la date dans une fenetre, voila mon code :
Mais ca ne fonctionne pas. J'ai comme erreur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 QLabel *mDate = new QLabel(); mDate = new QLabel(QDateTime::currentDateTime().toString("dddd dd MMMM yyyy"),this); QLabel *labelInfo = new QLabel(this); labelInfo->setText("Nous sommes le " + mDate);
Quelqu'un pourrait il m'aider,invalid operands of types 'const char [103]' and 'QLabel*' to binary 'operator+'
C:\Users\sebastien\Projet C++\Gestion-build-desktop\..\Gestion\fenPrincipale.cpp
merci
Partager