Dear Qt users & experts,
I am a noob at Qt, but since it can do nice things it catched my interest, I will try to explain my problem in short :
I enbedded two qwtplot inside two different groupbox in a mainwindow. In this main window I have a table (made from QabstractItemModel but I can change it). The idea is to click on the graph to get the value where u click. I managed to show this value in a messagebox. Everything worked nicely, except that I have problem for transferring the value to the main window.
I tried to inherit Plot from MainWindow, but it is normally like : "class Plot : public QwtPlot ....."
But it seems double inheritance is not good when using connect in further step...
I have seen also that it seems possible to declare global variables, but I have seen also that it is not recommended, not really in object-oriented programmation spirit.
I don't know what is the best approach to this problem, can u help me?
Bookmarks