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

From KDE TechBase
(Created page with "Первый вызов [http://doc.qt.nokia.com/latest/qobject.html#connect QObject::connect()] взят из предыдущей главы без изменений. Втор...")
 
(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)
The first [http://doc.qt.nokia.com/latest/qobject.html#connect QObject::connect()] call is the same that you have seen in the previous chapter. The second is new; it connects slider's [http://doc.qt.nokia.com/latest/qabstractslider.html#valueChanged QAbstractSlider::valueChanged()] signal to this object's '''<tt>valueChanged()</tt>''' signal. Yes, that's right. Signals can be connected to other signals. When the first is emitted, the second signal is also emitted.

Первый вызов QObject::connect() взят из предыдущей главы без изменений. Второй вызов соединяет сигнал ползунка QAbstractSlider::valueChanged() с сигналом valueChanged() текущего объекта. Всё верно: сигналы можно подключать к другим сигналам. Когда вырабатывается первый сигнал, второй сигнал будет вырабатываться автоматически.