X Tutup
The Wayback Machine - https://web.archive.org/web/20201220223256/https://github.com/paceholder/nodeeditor/issues/243
Skip to content
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

error: no matching function for call to ‘QtNodes::FlowScene::FlowScene(std::shared_ptr<QtNodes::DataModelRegistry>)’ FlowScene scene(registerDataModels()) #243

Open
njanirudh opened this issue Jun 24, 2019 · 1 comment

Comments

@njanirudh
Copy link

@njanirudh njanirudh commented Jun 24, 2019

I am trying a prototype application to embed the node-editor flow-view in my custom application.

I am getting the following error when I try to run the bare basic application
error: no matching function for call to ‘QtNodes::FlowScene::FlowScene(std::shared_ptrQtNodes::DataModelRegistry)’
FlowScene scene(registerDataModels())

`
================= main.cpp ===============
#include <nodes/NodeData>
#include <nodes/FlowScene>
#include <nodes/FlowView>

#include <QtWidgets/QApplication>

using QtNodes::DataModelRegistry;
using QtNodes::FlowScene;
using QtNodes::FlowView;

static std::shared_ptr
registerDataModels()
{
auto ret = std::make_shared< DataModelRegistry >();
return ret;
}

int
main(int argc, char *argv[])
{
QApplication app(argc, argv);

FlowScene scene(registerDataModels());

FlowView view(&scene);

view.setWindowTitle("Node-based flow editor");
view.resize(800, 600);
view.show();

return app.exec();
}
'

================= .pro ===============

QT += core gui opengl

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = Flow-Graph-Prototype
TEMPLATE = app

DEFINES += NODE_EDITOR_STATIC

CONFIG += c++14 optimize_full

INCLUDEPATH += "$$PWD/Nodeeditor/include/nodes/internal"
"$$PWD/Nodeeditor/include"

DEFINES += QT_DEPRECATED_WARNINGS

RESOURCES +=
resources/resources.qrc

SOURCES +=
main.cpp
mainwindow.cpp
Nodeeditor/src/Connection.cpp
Nodeeditor/src/ConnectionBlurEffect.cpp
Nodeeditor/src/ConnectionGeometry.cpp
Nodeeditor/src/ConnectionGraphicsObject.cpp
Nodeeditor/src/ConnectionPainter.cpp
Nodeeditor/src/ConnectionState.cpp
Nodeeditor/src/ConnectionStyle.cpp
Nodeeditor/src/DataFlowModel.cpp
Nodeeditor/src/DataFlowScene.cpp
Nodeeditor/src/DataModelRegistry.cpp
Nodeeditor/src/FlowScene.cpp
Nodeeditor/src/FlowSceneModel.cpp
Nodeeditor/src/FlowView.cpp
Nodeeditor/src/FlowViewStyle.cpp
Nodeeditor/src/Node.cpp
Nodeeditor/src/NodeConnectionInteraction.cpp
Nodeeditor/src/NodeDataModel.cpp
Nodeeditor/src/NodeGeometry.cpp
Nodeeditor/src/NodeGraphicsObject.cpp
Nodeeditor/src/NodePainter.cpp
Nodeeditor/src/NodeState.cpp
Nodeeditor/src/NodeStyle.cpp
Nodeeditor/src/Properties.cpp
Nodeeditor/src/StyleCollection.cpp

HEADERS +=
mainwindow.h
Nodeeditor/include/nodes/internal/Compiler.hpp
Nodeeditor/include/nodes/internal/Connection.hpp
Nodeeditor/include/nodes/internal/ConnectionGeometry.hpp
Nodeeditor/include/nodes/internal/ConnectionGraphicsObject.hpp
Nodeeditor/include/nodes/internal/ConnectionID.hpp
Nodeeditor/include/nodes/internal/ConnectionState.hpp
Nodeeditor/include/nodes/internal/ConnectionStyle.hpp
Nodeeditor/include/nodes/internal/DataFlowModel.hpp
Nodeeditor/include/nodes/internal/DataFlowScene.hpp
Nodeeditor/include/nodes/internal/DataModelRegistry.hpp
Nodeeditor/include/nodes/internal/Export.hpp
Nodeeditor/include/nodes/internal/FlowScene.hpp
Nodeeditor/include/nodes/internal/FlowSceneModel.hpp
Nodeeditor/include/nodes/internal/FlowView.hpp
Nodeeditor/include/nodes/internal/FlowViewStyle.hpp
Nodeeditor/include/nodes/internal/memory.hpp
Nodeeditor/include/nodes/internal/Node.hpp
Nodeeditor/include/nodes/internal/NodeData.hpp
Nodeeditor/include/nodes/internal/NodeDataModel.hpp
Nodeeditor/include/nodes/internal/NodeGeometry.hpp
Nodeeditor/include/nodes/internal/NodeGraphicsObject.hpp
Nodeeditor/include/nodes/internal/NodeIndex.hpp
Nodeeditor/include/nodes/internal/NodePainterDelegate.hpp
Nodeeditor/include/nodes/internal/NodeState.hpp
Nodeeditor/include/nodes/internal/NodeStyle.hpp
Nodeeditor/include/nodes/internal/OperatingSystem.hpp
Nodeeditor/include/nodes/internal/PortType.hpp
Nodeeditor/include/nodes/internal/QStringStdHash.hpp
Nodeeditor/include/nodes/internal/QUuidStdHash.hpp
Nodeeditor/include/nodes/internal/Serializable.hpp
Nodeeditor/include/nodes/internal/Style.hpp
Nodeeditor/include/nodes/internal/TypeConverter.hpp
Nodeeditor/include/nodes/Connection
Nodeeditor/include/nodes/ConnectionStyle
Nodeeditor/include/nodes/DataFlowModel
Nodeeditor/include/nodes/DataFlowScene
Nodeeditor/include/nodes/DataModelRegistry
Nodeeditor/include/nodes/FlowScene
Nodeeditor/include/nodes/FlowSceneModel
Nodeeditor/include/nodes/FlowView
Nodeeditor/include/nodes/FlowViewStyle
Nodeeditor/include/nodes/Node
Nodeeditor/include/nodes/NodeData
Nodeeditor/include/nodes/NodeDataModel
Nodeeditor/include/nodes/NodeGeometry
Nodeeditor/include/nodes/NodeGraphicsObject
Nodeeditor/include/nodes/NodeIndex
Nodeeditor/include/nodes/NodePainterDelegate
Nodeeditor/include/nodes/NodeState
Nodeeditor/include/nodes/NodeStyle
Nodeeditor/include/nodes/TypeConverter
Nodeeditor/src/ConnectionBlurEffect.hpp
Nodeeditor/src/ConnectionPainter.hpp
Nodeeditor/src/NodeConnectionInteraction.hpp
Nodeeditor/src/NodePainter.hpp
Nodeeditor/src/Properties.hpp
Nodeeditor/src/StyleCollection.hpp

FORMS +=
mainwindow.ui

qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

@njanirudh njanirudh changed the title Error in using nodeeditor library with qmake error: no matching function for call to ‘QtNodes::FlowScene::FlowScene(std::shared_ptr<QtNodes::DataModelRegistry>)’ FlowScene scene(registerDataModels()) Jun 24, 2019
@njanirudh
Copy link
Author

@njanirudh njanirudh commented Jun 27, 2019

Anyone who can help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.
X Tutup