Cannot compile downloaded projects



  • Hey everybody, i am new at qt so i wonted to contribute some foss project. I found qtcodeedit, but there is a problem: I cannot compile project. I added to .pro file some lines, added changes between qt4 and qt5, but there are error: QListView not found, QLabel not found eg, Please tell me what to do. Where is my mistake.


  • Lifetime Qt Champion

    Hi,

    With Qt 5, the widgets have been moved to their own module. You need to add
    @QT += widgets@

    to your pro file


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.