radio.cpp

来自「This a framework to test new ideas in tr」· C++ 代码 · 共 45 行

CPP
45
字号
#include <qapplication.h>#include "tunerfrm.h"#include "ampfrm.h"#include "radio.h"MainWin::MainWin(): QWidget(){    TunerFrame *frmTuner = new TunerFrame(this);    frmTuner->setFrameStyle(QFrame::Panel|QFrame::Raised);    AmpFrame *frmAmp = new AmpFrame(this);    frmAmp->setFrameStyle(QFrame::Panel|QFrame::Raised);    setFixedSize(720,240);    frmTuner->move(0,0);    frmAmp->move(0,120);        connect(frmTuner, SIGNAL(fieldChanged(double)),         frmAmp, SLOT(setMaster(double)));    frmTuner->setFreq(90.0);    }int main (int argc, char **argv){    QApplication a(argc, argv);    MainWin w;    a.setMainWidget(&w);    w.show();    return a.exec();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?