You can't pass values that way!
Use a signal mapper as JimDaniel has suggested or sender() in your slot to get the sender.I want to solve elegantly the problem of handling each slider in a similar way:
If I had eg 5 methods
I could do something similar.Qt Code:
public slots: void adequate_function0(int value); void adequate_function1(int value); void adequate_function2(int value); void adequate_function3(int value); void adequate_function4(int value);To copy to clipboard, switch view to plain text mode
Bookmarks