Details
-
Bug
-
Resolution: Invalid
-
P5: Not important
-
None
-
6.6.0
Description
A new yellow warning presents itself that is wrong. "Included header dialog.h is not used directly (fix available) Source clangd. For example:
fu.h:
#include <QDialog>
class Dialog : public QDialog
{ Q_OBJECT public: explicit Dialog(QWidget *parent = nullptr); ~Dialog(); };
fu.cpp:
#include "dialog.h" /*\Included header dialog.h is not used directly (fix available)
Dialog::Dialog(QWidget *parent)
: QDialog(parent)
{}
Dialog::~Dialog() {}
The "fix" is to delete the include statement. However, without the include statement, Dialog and QWidget are undefined. Therefore, the "fix" is incorrect.