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.
如果我的QDialog结果值为QDialog::Accepted,那么该值存储在哪里?而且,知道这样的价值有什么好处?
QDialog
QDialog::Accepted
谢谢。
您可以通过调用 QDialog 的result() 方法来获取它。
result()
它还可以让您知道用户是否在对话框中单击了“确定”或“取消”(或任何类似选项)。