I originally tried to explain that the process() function brings in all of this data and draws the polygons. I then explained the items I need to scale were stored and created under the process() function,
At least I understood it defferently.
Your original problem was getting the signal/slots to work.
I didn't pay any attention to what you were trying to do IN your code, I was just trying to help you get your code to work, and to explain to you the syntax rules for connecting signal and slot.
and if you are now telling I essentially need to re-input the data in the same data structures and essentially copy all the code from process() into processRight().
I never said anything about that.
If at all then this (more than once):
You don't need to create new slots, make one slot that connects to the valueChangedRight(int) signal,
This is true, provided you can do all the work in one slot, that reacts to hte valueChangedRight(int) signal.
So basically you can do the following:
test1::test1() {
setupUi(this);
//connect(pushButton, SIGNAL(clicked()), this, SLOT(process()));
connect(horizontalSlider, SIGNAL(valueChangedRight(int)), this, SLOT(process(int)));
}
void test1::process(int pos) {
//adjust your original process() code so that it will remember the last pos,
//and check based on current pos values if the movement is to the left or right.
{
test1::test1() {
setupUi(this);
//connect(pushButton, SIGNAL(clicked()), this, SLOT(process()));
connect(horizontalSlider, SIGNAL(valueChangedRight(int)), this, SLOT(process(int)));
}
void test1::process(int pos) {
//adjust your original process() code so that it will remember the last pos,
//and check based on current pos values if the movement is to the left or right.
{
To copy to clipboard, switch view to plain text mode
Bookmarks