[SOLVED]Need help with combining GUI
-
ahh I see
when you say
double freq = StatusWindow::AngularVelocities.gimbalNS1Vel;
you try to access AngularVelocities as it was a static struct.
But its not - so you need an instance of StatusWindow for it to work.like
StatusWindow *MyInst = new StatusWindow (); double freq =MyInst->AngularVelocities.gimbalNS1Vel; delete MyInst ;
So if StatusWindow was the mainwindow in the other project, then you
might not have an instance in the "this" project and you would need to create one.Have you considered to move the data to its own file so its easier to use both places ?
-
@zhihaowu
Well if you need both projects still working then
moving the data our from mainwindow to its own file would make it far easier.
Copy/pasting code often comes back and bite. :) -
-
mrjj Lifetime Qt Championreplied to zhihaowu on 1 Oct 2015, 11:09 last edited by mrjj 10 Jan 2015, 11:10
@zhihaowu said:
Hi that's the type definition.
sorry my bad
it should be angVels;double freq = MyInst->angVels.gimbalNS1Vel;
-
one note:
I suspect you need to call
void computeAngularVelocities(SolTrack::Position sunPos, SolTrack::Position oldPos, AngularVelocities* angVels);for angVels to have anything but zero.
-
\o/
Super -
I am trying to add new features to a GUI. The files for new features such as camera output, video output etc exists on a different location.
What would be the best way to do agile Qt development.
With best regards,
Karan
-
@KaranBehar
Well agile is not different with Qt.
Just make sure project is under code revision control and go ahead :)