Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Modular library and its paths
AndrzejB last edited by AndrzejB
Library libqxt with my small changes is here: https://github.com/borneq/libqxt
is compilable from batch, but examples still not compilable.
I have added to examples pro "QT += core gui" but is is not enough:
in displaysettingsdialog.h file is #include <QxtScreen>
QxtScreen is in directory libqxt\include\QxtWidgets
but is invisible
What are rules to add module directories
QT += core gui widgetsto get QtWidgets module.
And to use
<SomeHeader>you need to point qmake to it's parent directory using
I add full paths and even add qxtletterboxwidget.cpp with path to my project, but is error:
:-1: error: No rule to make target 'QxtLetterBoxWidget', needed by 'ui_displaysettingsdialog.h'. Stop.
My pro is:
QT += core gui widgets TEMPLATE = app TARGET = displaysettings DEPENDPATH += . INCLUDEPATH += . INCLUDEPATH += d:/wazne/github_my/libqxt/include INCLUDEPATH += d:/wazne/github_my/libqxt/src/widgets INCLUDEPATH += d:/wazne/github_my/libqxt/src/core CONFIG += qxt QXT += core gui widgets # Input FORMS += displaysettingsdialog.ui HEADERS += displaysettingsdialog.h SOURCES += displaysettingsdialog.cpp main.cpp SOURCES += d:/wazne/github_my/libqxt/src/widgets/qxtletterboxwidget.cpp
That's wrong. Qxt is a library, you should have a precompiled dll or lib package. Then use
INCLUDEPATHto point Qt to the includes, and
LIBSto point it to the libraries.
What you did here is a manual compilation of
qxtletterboxwidget.cppwhich won't work.
Problem is probably with ui, I not used it previous.
LIBS += d:/wazne/github_my/libqxt/lib -lQxtCore -lQxtWidgets
but still the same error.
SOURCES += d:/wazne/github_my/libqxt/src/widgets/qxtletterboxwidget.cpp
Remove that line from .pro file.
Removed, instead this is LIBS.
Should work, then. Make a full rebuild.
- Is there anything special in "ui_displaysettingsdialog.h"?
- Have you checked if file "QxtScreen" is there in on of the INCLUDEPATHs you added?