QT對話框中show和exec的區別

QDialog的顯示有兩個函數show()和exec()。他們的區別在參考文檔上的解釋以下:app show(): 顯示一個非模式對話框。控制權即刻返回給調用函數。 彈出窗口是否模式對話框,取決於modal屬性的值。 (原文:Shows the dialog as a modeless dialog. Control returns immediately to the calling code.
相關文章
相關標籤/搜索