ui file unable to find the header for promoted widget class
Moved
Solved
Qt Creator and other tools
-
wrote on 6 Dec 2021, 08:48 last edited by summit 12 Jun 2021, 08:50
i am promoting a widget to opengl widget using Qt creator , the header file is a User-defined header file but when ever i compile the project the header file comes with the syntax like this.
So the project is not able to find the file as its location is same as the project.
#include <oglwidget.h>
if i change this to
#include "oglwidget.h"
the project compiles and the widget also gets promted to the OpenGlWidget.
how can i change this behavior where the header file always comes with the syntax .
#include "oglwidget.h"
-
Uncheck 'global include' in the 'Promoted Widgets' dialog: https://doc.qt.io/qt-5/designer-using-custom-widgets.html
-
Uncheck 'global include' in the 'Promoted Widgets' dialog: https://doc.qt.io/qt-5/designer-using-custom-widgets.html
wrote on 6 Dec 2021, 09:16 last edited by@Christian-Ehrlicher Thank you very much.
1/3