1.将子窗口.h程序中的代码做以下改变:
public:(由private改为public)
Ui::infraredSetWin ui;
2.在主程序中包含子窗口的.h文件
先定义对象:
infraredSetWin *infraredWin;
在主程序的.cpp文件中调用子窗口的控件:
infraredWin->ui.hightGainButton->setStyleSheet("background: green");
1.将子窗口.h程序中的代码做以下改变:
public:(由private改为public)
Ui::infraredSetWin ui;
2.在主程序中包含子窗口的.h文件
先定义对象:
infraredSetWin *infraredWin;
在主程序的.cpp文件中调用子窗口的控件:
infraredWin->ui.hightGainButton->setStyleSheet("background: green");