Translations:Development/Tutorials/Qt4 Ruby Tutorial/Chapter 07/20/ru: Difference between revisions

From KDE TechBase
(Created page with "Когда пользователь двигает ползунок, ползунок вырабатывает сигнал [http://doc.qt.nokia.com/latest/qabstractslider.html#v...")
 
(No difference)

Latest revision as of 17:46, 2 July 2011

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Development/Tutorials/Qt4 Ruby Tutorial/Chapter 07)
Let's look at what happens when the user operates the slider. The slider sees that its value has changed and emits the [http://doc.qt.nokia.com/latest/qabstractslider.html#valueChanged QAbstractSlider::valueChanged()] signal. That signal is connected both to the [http://doc.qt.nokia.com/latest/qlcdnumber.html#intValue-prop QLCDNumber::display()] slot of the [http://doc.qt.nokia.com/latest/qlcdnumber.html Qt::LCDNumber] and to the '''<tt>valueChanged()</tt>''' signal of the '''<tt>LCDRange</tt>'''.

Когда пользователь двигает ползунок, ползунок вырабатывает сигнал QAbstractSlider::valueChanged(). Этот сигнал соединён одновременно со слотом QLCDNumber::display() объекта класса Qt::LCDNumber и с сигналом valueChanged() объекта класса LCDRange.