Jump to content

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

From KDE TechBase
Centerlink (talk | contribs)
Created page with "'''<tt>MyWidget</tt>''' nyt käyttää komponenttia [http://doc.qt.nokia.com/latest/qvboxlayout.html Qt::VBoxLayout] hallinnoimaan sen tytärkäyttöliittymäkomponentin geometri..."
 
(No difference)

Latest revision as of 09:47, 28 August 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)
'''<tt>MyWidget</tt>''' now uses a [http://doc.qt.nokia.com/latest/qvboxlayout.html Qt::VBoxLayout] to manage the geometry of its child widgets. For that reason, we don't need to specify the screen coordinates for each widget like we did in Chapter 4. In addition, using a layout ensures that the child widgets are resized when the window is resized. Then we add the '''<tt>quit</tt>''', '''<tt>lcd</tt>''', and '''<tt>slider</tt>''' widgets to the layout using [http://doc.qt.nokia.com/latest/qboxlayout.html#addWidget Qt::BoxLayout::addWidget()].

MyWidget nyt käyttää komponenttia Qt::VBoxLayout hallinnoimaan sen tytärkäyttöliittymäkomponentin geometriaa. Siitä syystä meidän ei tarvitse määritellä näytön koordinaatteja jokaiselle käyttöliitymäkomponentille, kuten teimme kappaleessa 4. Sen lisäksi, asettelun käyttäminen varmistaa, että tytärkomponentin koko muuttuu, kun käyttöliittymäkomponentin kokoa muutetaan. Lisäämme sitten quit-, lcd-, ja slider-käyttöliittymäkomponentit asetteluun käyttäen komponenttimetodia Qt::BoxLayout::addWidget().