私は親からchildrenWidget(または子の子の子)からアクセス可能でなければならないソフトウェアを作成しています。子からparentWidget(または親の親の親...) 。例えばQTでトップ(ベース)のparentWidgetを取得するには?
:
QWidget_Principal --> WidgetApplications --> WidgetMenuBar --> PushButtonFullScreen.
問題は、私はこれを行うことができる方法は、
this->parentWidget()->parentWidget()->parentWidget()->showFullScreen();
それを行うには、このそこに簡単な方法をやっているのですか?
ありがとうございました そして私の非常に悪い英語を申し訳ありません。
ルイス・ダ・コスタ
をhttp://doc.qt.io/qt-4.8/qwidget.html#window – Vortexfive