Skip to content

Build issue with Qt 5.2.1 #14078

@laanwj

Description

@laanwj

It is no longer possible to build the GUI with Qt 5.2.1, which is on Ubuntu Trusty:

  CXX      qt/test/qt_test_test_bitcoin_qt-util.o
qt/test/util.cpp: In function ‘void ConfirmMessage(QString*, int)’:
qt/test/util.cpp:21:24: error: no matching function for call to ‘QTimer::singleShot(int&, FunctionCallback<ConfirmMessage(QString*, int)::__lambda0>*, void (Callback::*)())’
     }), &Callback::call);
                        ^
qt/test/util.cpp:21:24: note: candidates are:
In file included from /usr/include/qt5/QtCore/QTimer:1:0,
                 from qt/test/util.cpp:5:
/usr/include/qt5/QtCore/qtimer.h:81:17: note: static void QTimer::singleShot(int, const QObject*, const char*)
     static void singleShot(int msec, const QObject *receiver, const char *member);
                 ^
/usr/include/qt5/QtCore/qtimer.h:81:17: note:   no known conversion for argument 3 from ‘void (Callback::*)()’ to ‘const char*’
/usr/include/qt5/QtCore/qtimer.h:82:17: note: static void QTimer::singleShot(int, Qt::TimerType, const QObject*, const char*)
     static void singleShot(int msec, Qt::TimerType timerType, const QObject *receiver, const char *member);
                 ^
/usr/include/qt5/QtCore/qtimer.h:82:17: note:   candidate expects 4 arguments, 3 provided

Not a high-priority issue, but I think we either need to fix this or add minimum Qt version check (to what?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions