void chatEmotion::myqlable_clicked()
{
    myQLabel *sendname = qobject_cast<myQLabel*>(sender());//获取被单击的我的myqlabel的对象的名称;
    QString beclicked_name = sendname->objectName();
//    qDebug()<<beclicked_name;
    emit load_face(beclicked_name);//   发送被单击后的对戏那个的控件的名称;
}
Пример #2
0
void chat_face::myqlable_clicked()
{
    qDebug()<<"myqlable is being clicked!!!";
    myQLabel *sendname=qobject_cast<myQLabel*>(sender());///获取被单击的我的myqlabel的对象的名称;
    QString beclicked_name=sendname->objectName();
    qDebug()<<beclicked_name;
    emit load_face(beclicked_name);/////   发送被单击后的对戏那个的控件的名称;
}
void MainWindow::Emotion() //表情
{
    chatEmotion *mychat_face = new chatEmotion();
    mychat_face->setGeometry(mapToGlobal(chatEmotion1->pos()).x(),
                             mapToGlobal(chatEmotion1->pos()).y() - mychat_face->height(), 100 , 100);
    mychat_face->show();
    connect(mychat_face, SIGNAL(load_face(QString)), this, SLOT(loadface(QString)));
}
Пример #4
0
void Polygon::load(std::ifstream &istr)
{
    size_t nnodes;
    istr >> nnodes;
    load_face(istr, nnodes);
}