I originally used the the following connect function to display the plots with a given standard scale:
connect(pushButton, SIGNAL(clicked()), this, SLOT(process()));
connect(pushButton, SIGNAL(clicked()), this, SLOT(process()));
To copy to clipboard, switch view to plain text mode
I have revised the code under your recommendation, and the horizontal scale functions correctly. Thank you for this. However, when I first execute the program the graphicsView is empty and the plots only appears once I move the horizontal slider. Under your advise that "provided you can do all the work in one slot," do you have any suggestions to initialize the plot into graphicsView before any changes are made to the horizontal slider.
Additionally, I am also considering how I would be able to implement the code/logic to configure the connect function:
connect(verticalSlider, SIGNAL(valueChanged(int)), this, SLOT(processRight(int)));
connect(verticalSlider, SIGNAL(valueChanged(int)), this, SLOT(processRight(int)));
To copy to clipboard, switch view to plain text mode
Maybe having one slot will not serve well in my application? Do you agree?
Bookmarks