Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
QTを使用しています。マウスクリックで魔女のグラフィックシーンがクリックされたかどうかを確認したいので、QGraphicsSceneにアクセシブルな名前を設定したいですか?ありがとうございました
QObject(QGraphicsSceneを含む)から派生した各クラスには、名前を設定するための次の関数があります。
void setObjectName ( const QString & name )
そして、あなたはこの関数でこの名前を取得することができます:
QString objectName () const