The communiction between itens is controlled via the QDialog class that is the ui.
By over loading the signals and slots of the ui control can be passed between items.
For example, when you press the Calculate button, ovreride the clicked() slot function.
In your function, take the contents of the linedit and generate the data for the QwtPlot.
Here are some of my examples below;
Call your plotting routine when the plotbutton is clicked.
connect ( plotButton, SIGNAL ( clicked() ), this, SLOT ( plotActiveAccount( ) ) );// plot the active account
connect ( plotButton, SIGNAL ( clicked() ), this, SLOT ( plotActiveAccount( ) ) );// plot the active account
To copy to clipboard, switch view to plain text mode
The following slot can be used to recognise when the contets of a linedit is changed.
connect ( lineEdit_Tamount,
SIGNAL ( textChanged
( QString ) ),
this,
SLOT ( updateTamount
( QString ) ) );
connect ( lineEdit_Tamount, SIGNAL ( textChanged ( QString ) ), this, SLOT ( updateTamount( QString ) ) );
To copy to clipboard, switch view to plain text mode
The dialog class controls all the communication between the various widgets on it.
Best of luck,
Carlton.
Bookmarks