vezzon
vezzon

Reputation: 209

convert connect-statement from qt to pyqt5

how is the PyQt5 code of this Qt-connect-statement:

connect(frozenTableView->verticalScrollBar(), &QAbstractSlider::valueChanged,
          verticalScrollBar(), &QAbstractSlider::setValue)

Thank you!

Franz

Upvotes: 0

Views: 121

Answers (1)

ekhumoro
ekhumoro

Reputation: 120578

Something like this:

frozenTableView.verticalScrollBar().valueChanged.connect(
    self.verticalScrollBar().setValue)

Upvotes: 1

Related Questions