How about:
connect(verticalScrollBar, SIGNAL(valueChanged(int)), tableWidget->verticalScrollBar(), SLOT(setValue(int)));
connect(horizontalScrollBar, SIGNAL(valueChanged(int)), tableWidget->horizontalScrollBar(), SLOT(setValue(int)));
connect(verticalScrollBar, SIGNAL(valueChanged(int)), tableWidget->verticalScrollBar(), SLOT(setValue(int)));
connect(horizontalScrollBar, SIGNAL(valueChanged(int)), tableWidget->horizontalScrollBar(), SLOT(setValue(int)));
To copy to clipboard, switch view to plain text mode
Bookmarks