This does not work. It gives a name error saying that the global variable "value" is not defined. How can you access the value of the argument? Thanks in advance. void Dialog::ScaleScrollBar_ValueChanged(int value) { valueString = QString("value = %1\n").arg(value) self.TextEdit.append(valueString) }