[表示 : 全て 最新50 1-99 101- 201- 301- 401- 501- 601- 2chのread.cgiへ]
Update time : 01/25 10:41 / Filesize : 218 KB / Number-of Response : 637
[このスレッドの書き込みを削除する]
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧] [類似スレッド一覧]


↑キャッシュ検索、類似スレ動作を修正しました、ご迷惑をお掛けしました

【RAD統合環境】 Qt 総合スレ 5 【Win/Mac/Linux】



498 名前:デフォルトの名無しさん [2009/11/14(土) 11:11:19 ]
>>497
>QLabelの場合、mapper->addMapping(ui->label,0,"text");って
>三番目の引数に"text"を指定しなければ表示されなかったので注意。

QLabelにはUSER属性がtrueなプロパティがないからです。

QLineEdit
Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged USER true)

QLabel
Q_PROPERTY(QString text READ text WRITE setText)

ない理由は、

doc.trolltech.com/4.5/properties.html

The USER attribute indicates whether the property is designated as the user-facing
or user-editable property for the class. Normally, there is only one USER property
per class (default false). e.g., QAbstractButton::checked is the user editable property
for (checkable) buttons. Note that QItemDelegate gets and sets a widget's USER property.






[ 続きを読む ] / [ 携帯版 ]

全部読む 前100 次100 最新50 [ このスレをブックマーク! 携帯に送る ] 2chのread.cgiへ
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧]( ´∀`)<218KB

read.cgi ver5.27 [feat.BBS2 +1.6] / e.0.2 (02/09/03) / eucaly.net products.
担当:undef