Menu

Build error (no method named setToolTipDuration)

2017-08-22
2017-11-17
  • Benjamin Blumer

    Benjamin Blumer - 2017-08-22

    Building on Ubuntu 16.04 with qt4:

    ~/cvassistant-code$ qmake-qt4
    ~/cvassistant-code$ make
    g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I. -I. -I. -o main.o main.cpp
    In file included from controllers/mainwindow.h:22:0,
                     from main.cpp:20:
    ./ui_mainwindow.h: In member function void Ui_MainWindow::setupUi(QMainWindow*):
    ./ui_mainwindow.h:330:25: error: class QGraphicsView has no member named setToolTipDuration
             gvProfilePhoto->setToolTipDuration(5000);
                             ^
    ./ui_mainwindow.h:542:28: error: class QPlainTextEdit has no member named setToolTipDuration
             pteRequiredSkills->setToolTipDuration(5000);
                                ^
    ./ui_mainwindow.h:579:21: error: class QScrollArea has no member named setToolTipDuration
             scrollArea->setToolTipDuration(5);
    

    And, indeed, according to qt-4 docs, this method doesn't exist.

     

    Last edit: Benjamin Blumer 2017-08-22
  • Benjamin Blumer

    Benjamin Blumer - 2017-08-23

    After installing qt5, this problem seems to be resolved. I think the install file should be changed to say outright that QT4 does not work, or an adjustment should be made to the code that allows it to build.

    BTW, thanks for the cool app. I'll be working on an extension the next few days and I'll post a link :)

    P.S. Also worth noting, to build on my system, I need to change

        LIBS += -lquazip-qt5
    

    to

        LIBS += -lquazip5
    

    in CVAssistant.pro.

    And, to actually get that library from the repository

    sudo apt-get install libquazip5-1
    

    ( I guess the name is different in Ubuntu vs Debian)

     

    Last edit: Benjamin Blumer 2017-08-23
  • Aario Shahbany

    Aario Shahbany - 2017-10-01

    Thanks for the solution. As debian needs LIBS += -lquazip-qt5 and your system might be Ubuntu, I will think of a hybrid .pro file which supports both systems or a kind of shell script to compile on a variety of systems.

     
  • zenny

    zenny - 2017-11-17

    Bump!

     

    Last edit: zenny 2017-11-18

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.