Using CCviewer in another project
Posted: Tue Feb 19, 2013 3:14 pm
Hi everybody,
I face some problems trying to use ccViewer in another project.
I already have a base project in Qt, and I want to use ccviewer to visualize my .ply files.
What I'm trying to do, is to call ccviewer after my current window by using a slot.
I would like to pass as an argument the path of my .ply file in order to open it.
I saw that the argument were passed in the main.cpp of ccviewer however, I did succeed to pass my filename as an argument.
Do you have any solution/help for me?
The second thing is that i'm want ccviewer to be called by a slot after i click a button on my User interface. What should I call for that?
thanks a lot for your help!
Edit : I manage to use CCviewer in my other project, however i'm not able to call ccviewer constructor ( in ccviewer.h) do you know how?
I use that
I face some problems trying to use ccViewer in another project.
I already have a base project in Qt, and I want to use ccviewer to visualize my .ply files.
What I'm trying to do, is to call ccviewer after my current window by using a slot.
I would like to pass as an argument the path of my .ply file in order to open it.
I saw that the argument were passed in the main.cpp of ccviewer however, I did succeed to pass my filename as an argument.
Do you have any solution/help for me?
The second thing is that i'm want ccviewer to be called by a slot after i click a button on my User interface. What should I call for that?
thanks a lot for your help!
Edit : I manage to use CCviewer in my other project, however i'm not able to call ccviewer constructor ( in ccviewer.h) do you know how?
I use that
Code: Select all
ccViewer *ViewerWindow = new ccViewer();
ViewerWindow->show();
QMainWindow *currentWindow = ViewerWindow;