Translations:Development/Tutorials/Qt4 Ruby Tutorial/Chapter 05/26/fi: Difference between revisions

From KDE TechBase
(Created page with "Qt:ss' käyttöliittymäkomponentit ovat joko muiden käyttöliittymäkomponenttien tyttäriä (esim.: '''<tt>self</tt>'''), tai niillä ei ole emoa. Käyttöliittymäkomponentti...")
 
(No difference)

Latest revision as of 18:46, 4 September 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 05)
In Qt, widgets are either children of other widgets (e.g. '''<tt>self</tt>'''), or they have no parent. A widget can be ''added'' to a layout, in which case the layout becomes responsible for managing the geometry of that widget, but the layout can never act as a parent itself. Indeed, [http://doc.qt.nokia.com/latest/qwidget.html Qt::Widget]'s constructor takes a [http://doc.qt.nokia.com/latest/qwidget.html Qt::Widget] pointer for the parent, and [http://doc.qt.nokia.com/latest/qlayout.html Qt::Layout] doesn't inherit from [http://doc.qt.nokia.com/latest/qwidget.html Qt::Widget].

Qt:ss' käyttöliittymäkomponentit ovat joko muiden käyttöliittymäkomponenttien tyttäriä (esim.: self), tai niillä ei ole emoa. Käyttöliittymäkomponentti voidaan lisätä asetteluun, missä tapauksessa asettelu tulee velvoliseksi hallitsemaan asettelun geometriaa, mutta asettelu ei voi koskaan itse toimia emona. Todellisuudessa käyttöliittymäkomponentin Qt::Widget konstruktori ottaa osoittimen Qt::Widget emoon, ja Qt::Layout ei peri kohteesta Qt::Widget.