Translations:Development/Tutorials/KDE3/Qt Designer and KDevelop 3.0 for Beginners/86/ja

From KDE TechBase
Revision as of 12:27, 30 January 2012 by Phanect (talk | contribs) (Created page with "thumb|350px ここまでに配置したウィジットには名前を付けていませんでした。後でプログラム内で...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

ここまでに配置したウィジットには名前を付けていませんでした。後でプログラム内で参照する時に便利なように内部的な名前を設定するのは非常に良い事です。ラベルはアクションを全く起こさないので名前を付ける必要は有りませんが、他のウィジットは名前を付ける必要が有ります。It is the case now for our text boxes. We'll need to manipulate the data from the three input widgets (i.e. read the text) so we should give them a name. 名前は簡単なものかつ意味の有るもので無ければなりません。プロパティエディタの name プロパティで名前を設定する事ができます。ここでは一番上の LineEdit を nameBox、次の LineEdit を mailBox、そして ComboBox を commBox と名付ける事にしましょう。これにより、コメントにアクセスすることができるようになります。So click on each LineEdit and then besides Name in the Property Editor write nameBox and mailBox. Then click on the ComboBox and name it commBox.