-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example: Qt (qmake) #753
Comments
You need to specify some // a.cc
#include <QGuiApplication>
#include <QQmlApplicationEngine>
int main(int argc, char *argv[]) {
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
const QUrl url(QStringLiteral("qrc:/main.qml"));
QObject::connect(&engine, &QQmlApplicationEngine::objectCreated, &app,
[url](QObject *obj, const QUrl &objUrl) {
}, Qt::QueuedConnection);
engine.load(url);
return app.exec();
} # Debian: sudo apt install qtbase5-dev qtdeclarative5-dev
git init
qmake -project
qmake
# Append QT += qml
bear -- make
nvim a.cc # :CocStart, works fine |
yes. in linux no problem. macos and ccls + clang looks like have some issue but i think it can be solved with some additional configuration which is i dont know. |
I have this same exact problem. Running the example above did not work in my Fedora 34 with |
Observed behavior
when using ccls load a project generated from qt-creator, ccls report error where is not
ccls report QObject::connect is no matching function for call. but other vscode or qt-creator don't report such thing.
Expected behavior
do not report error
Steps to reproduce
System information
The text was updated successfully, but these errors were encountered: