Translations:Development/Tutorials/Qt4 Ruby Tutorial/Chapter 01/22/ru: Difference between revisions

From KDE TechBase
(Created page with "'''<tt>app</tt>''' — объект [http://doc.qt.nokia.com/latest/qapplication.html Qt::Application] в нашей программе. В этой строке он созда...")
 
(No difference)

Latest revision as of 15:21, 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 01)
'''<tt>app</tt>''' is this program's [http://doc.qt.nokia.com/latest/qapplication.html Qt::Application] instance. It is created here. 
We pass '''<tt>ARGV</tt>''' to the [http://doc.qt.nokia.com/latest/qapplication.html Qt::Application] constructor
so that it can process certain standard command-line arguments (such as '''<tt>-display</tt>''' under X11). 
All command-line arguments recognized by Qt are removed from '''<tt>ARGV</tt>'''.

app — объект Qt::Application в нашей программе. В этой строке он создаётся. Аргумент ARGV передаётся в конструктор класса Qt::Application для того, чтобы он мог узнать интересующие Qt аргументы командной строки, переданные в программу (например, аргумент -display при использовании X11). Все аргументы командной строки, которые используются Qt, удаляются из массива ARGV.