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.
QWidget が親なしで作成された場合、ウィンドウが作成されます。
では、ウィンドウはいつ作成されるのでしょうか。と呼ばれる時show()ですか?または、オブジェクトが構築されたときですか?
show()
show()メソッドが呼び出されると、ウィンドウが作成されます。ウィジェットを表示する前にウィジェットの親を設定すると、ウィンドウは作成されません。