Web lists-archives.com

Re: KF5 Conversion problems

On 10.03.2018 15:51, Robin Atwood wrote:
This is my first KDE4->KF5 conversion so brace for a lot of n00b questions! To
start I am getting compile failures because the wrong include files are
getting picked up:
/usr/include/kdialog.h:35:25: fatal error: QtGui/QDialog: No such file or
 #include <QtGui/QDialog>

QDialog is in QWidgets, see https://wiki.qt.io/Transition_from_Qt_4.x_to_Qt5
But I suggest to remove the path from include statements.

If it still cannot find Qt includes, you also need find_package(Qt ...) calls in cmake, and the corresponding Qt5::Widgets dependency in target_link_libraries().