急急急!高手请进
#ifndef DIALOG_H
#define DIALOG_H
#include <QtGui/QDialog>
#include<QKeyEvent>
#include<pageone.h>
class Dialog : public QDialog
{
Q_OBJECT
public:
Dialog(QWidget *parent = 0);
~Dialog();
private:
void keyPressEvent(QKeyEvent *event);
PageOne *page;
signals:
void del();
};
#endif // DIALOG_H
#include <QDialog>
#include<QLabel>
class PageOne : public QDialog
{
Q_OBJECT
public:
explicit PageOne(QWidget *parent = 0);
signals:
public slots:
private:
QLabel *label;
protected slots:
void ShowLabel();
};
#include "dialog.h"
#include<pageone.h>
Dialog::Dialog(QWidget *parent)
: QDialog(parent)
{ page=new PageOne(this);
connect(this,SIGNAL(del()),page,SLOT(ShowLabel()));
}
Dialog::~Dialog()
{
}
void Dialog::keyPressEvent(QKeyEvent *event)
{if(event->key()==Qt::Key_1)
emit del();
}
#include "pageone.h"
#include<QDebug>
PageOne::PageOne(QWidget *parent) :
QDialog(parent)
{label=new QLabel("the first page",this);
}
void PageOne::ShowLabel()
{ label->show();
qDebug()<<"afg";
}我通过按1然后在Dialog里面显示PageOne的label,但是显示不出来,不知道是什么问题,请高手指点。
...全文
相关推荐
请教高手关于EXCEL行列转换的问题!谢谢!急急急!!!
一般的方法行不通,可能要用到宏或者编一个程序,请帮忙!
c + + 计 时 器 急 急 急急 急 急急 急 急急 急 急急 急 急急 急 急急 急 急急 急 急急 急 急急 急 急
c + + 计 时 器 急 急 急急 急 急急 急 急急 急 急急 急 急急 急 急急 急 急急 急 急急 急 急急 急 急
急急急平面波matlab仿真中如何用颜色表示声压级的大小-Doc1.doc
急急急平面波matlab仿真中如何用颜色表示声压级的大小-Doc1.doc 原程序是: f=125; c0=344; k=2*f*pi./c0; r=0:0.001:0.5; p=exp; P=abs; plot; xlabel'); ylabel'); 不知程序对不对 请问怎么在平面波matlab仿真中如何用颜色表示声压级的大小,能不能帮忙把程序完整的表示出来
这是sdk调用源文件,急急急急急急
这是sdk调用源文件,急急急急急急
雕刻机c程序
雕刻机如果我i拉噶过来公积金急急急 os发挥哦 位粉丝如果是人体


