dependent '... .ui' does not exist

Viewed 43

So, basically, I've decided to a bit organize my resources. I'm pretty new to Qt so I've decided to do it by hands by creating folders and putting files in them directly. Ofc I wrote paths in #include but Qt still puts an error to me which I described in title

Here's my .pro file, pls help:

    QT       += core gui
    
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    CONFIG += c++17
    
    #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
    
    SOURCES += \
        AdminPanel/adminpanel.cpp \
        PhotoReporterAdminPanel/photoreporteradminpanel.cpp \
        main.cpp \
        photoreporteradminpanel.cpp
    
    HEADERS += \
        AdminPanel/adminpanel.h \
        PhotoReporterAdminPanel/photoreporteradminpanel.h \
        photoreporteradminpanel.h
    
    FORMS += \
        AdminPanel/adminpanel.ui \
        PhotoReporterAdminPanel/photoreporteradminpanel.ui \
        photoreporteradminpanel.ui
    
    # Default rules for deployment.
    qnx: target.path = /tmp/$${TARGET}/bin
    else: unix:!android: target.path = /opt/$${TARGET}/bin
    !isEmpty(target.path): INSTALLS += target

Here's how hierarchy looks like:

CourseWork
|
|>PhotoReporterAdminPanel
|    |
|    |>AdminPanel
|    |    |>adminpanel.h, adminpanel.cpp, adminpanel.ui
|    |>PhotoReporterAdminPanel
|    |    |>PhotoReporterAdminPanel.h, PhotoReporterAdminPanel.cpp, PhotoReporterAdminPanel.ui
|    |>main.cpp, PhotoReporterAdminPanel.pro
0 Answers
Related