1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| EmWindow::EmWindow(QWidget *parent) :
QWidget(parent),
ui(new Ui::EmWindow)
{
ui->setupUi(this);
// .../...
//Affichage dans pinLcdNumber en appuyant sur les touches
QShortcut *shrtcut1 = new QShortcut(tr("1"), this);
QShortcut *shrtcut2 = new QShortcut(tr("2"), this);
QShortcut *shrtcut3 = new QShortcut(tr("3"), this);
QShortcut *shrtcut4 = new QShortcut(tr("4"), this);
QShortcut *shrtcut5 = new QShortcut(tr("5"), this);
QShortcut *shrtcut6 = new QShortcut(tr("6"), this);
QShortcut *shrtcut7 = new QShortcut(tr("7"), this);
QShortcut *shrtcut8 = new QShortcut(tr("8"), this);
QShortcut *shrtcut9 = new QShortcut(tr("9"), this);
QShortcut *shrtcut0 = new QShortcut(tr("0"), this);
connect(shrtcut1, SIGNAL(activated()), this, SLOT(afficher1()));
connect(shrtcut2, SIGNAL(activated()), this, SLOT(afficher2()));
connect(shrtcut3, SIGNAL(activated()), this, SLOT(afficher3()));
connect(shrtcut4, SIGNAL(activated()), this, SLOT(afficher4()));
connect(shrtcut5, SIGNAL(activated()), this, SLOT(afficher5()));
connect(shrtcut6, SIGNAL(activated()), this, SLOT(afficher6()));
connect(shrtcut7, SIGNAL(activated()), this, SLOT(afficher7()));
connect(shrtcut8, SIGNAL(activated()), this, SLOT(afficher8()));
connect(shrtcut9, SIGNAL(activated()), this, SLOT(afficher9()));
connect(shrtcut0, SIGNAL(activated()), this, SLOT(afficher0()));
}
// .../...
} |
Partager