Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. ui file unable to find the header for promoted widget class

ui file unable to find the header for promoted widget class

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
3 Posts 2 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    summit
    wrote on last edited by summit
    #1

    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"
    
    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Uncheck 'global include' in the 'Promoted Widgets' dialog: https://doc.qt.io/qt-5/designer-using-custom-widgets.html

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      S 1 Reply Last reply
      4
      • Christian EhrlicherC Christian Ehrlicher

        Uncheck 'global include' in the 'Promoted Widgets' dialog: https://doc.qt.io/qt-5/designer-using-custom-widgets.html

        S Offline
        S Offline
        summit
        wrote on last edited by
        #3

        @Christian-Ehrlicher Thank you very much.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved