Thanks for the response; however, I'm still not able to get this to work. I've changed to the following:
feather.pro
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = feather
TEMPLATE = app
include(gui/gui.pri)
SOURCES += main.cpp
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = feather
TEMPLATE = app
include(gui/gui.pri)
SOURCES += main.cpp
To copy to clipboard, switch view to plain text mode
gui/mainwindow.cpp
#include "gui/mainwindow.h"
MainWindow
::MainWindow(QWidget *parent
){
}
MainWindow::~MainWindow()
{
}
#include "gui/mainwindow.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
}
MainWindow::~MainWindow()
{
}
To copy to clipboard, switch view to plain text mode
gui/gui.pri
INCLUDEPATH += gui
DEPENDPATH += gui
SOURCES += gui/mainwindow.cpp
HEADERS += gui/mainwindow.h
INCLUDEPATH += gui
DEPENDPATH += gui
SOURCES += gui/mainwindow.cpp
HEADERS += gui/mainwindow.h
To copy to clipboard, switch view to plain text mode
(I also tried with $${PWD} in place of gui, but it did not help)
If the mainwindow class is simply in the same directory as main.cpp, it works fine; however, I do not wish to have my entire source in one directory.
Bookmarks