Qt中获取QDialog的标题文本

Get title text of QDialog in Qt

如何获取 QDialog 的标题?

我知道我可以通过 setWindowTitle 设置标题,但我该如何 get 呢?

使用QWidget::windowTitle()方法。