error: no matching function for call to ‘QtNodes::FlowScene::FlowScene(std::shared_ptr<QtNodes::DataModelRegistry>)’ FlowScene scene(registerDataModels()) #243
Comments
|
Anyone who can help? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: