Qt QDialog模式对话框传递数据给主窗口(主窗口->子窗口)

Qt工作笔记-QDialog模式对话框传递数据给主窗口_qt dialog-CSDN博客话不多说,上图:这里同样是采用了Qt的信号与槽机制。项目文件分布如下:代码如下:dialog.h#ifndef DIALOG_H#define DIALOG_H#include namespace Ui {class Dialog;}class Dialog : public QDialog{ Q_OBJECTsignals: v..._qt dialoghttps://blog.csdn.net/qq78442761/article/details/79805252

主窗体向子窗体传值:

https://blog.csdn.net/qinqinxiansheng/article/details/104985044icon-default.png?t=N7T8https://blog.csdn.net/qinqinxiansheng/article/details/104985044https://blog.csdn.net/qinqinxiansheng/article/details/104985044icon-default.png?t=N7T8https://blog.csdn.net/qinqinxiansheng/article/details/104985044

 

你可能感兴趣的:(qt,子窗体传值给主窗体)