void klient::Mrejestracja()
{
dialog->resize(249, 131);
gridLayout->setSpacing(6);
gridLayout->setMargin(11);
R_pb_w
->setObjectName
(QString::fromUtf8("R_pb_w"));
gridLayout->addWidget(R_pb_w, 2, 0, 1, 2);
connect(R_pb_w,SIGNAL( clicked() ), this, SLOT(Trejestracja("a","b")));
dialog->exec();
{
tcpSocket->write("R \n");
tcpSocket->write("!"+l.toLatin1()+"!" + h.toLatin1() + "\n");
}
void klient::Mrejestracja()
{
QGridLayout *gridLayout;
QPushButton *R_pb_w;
QDialog *dialog = new QDialog();
dialog->resize(249, 131);
gridLayout = new QGridLayout(dialog);
gridLayout->setSpacing(6);
gridLayout->setMargin(11);
R_pb_w = new QPushButton(dialog);
R_pb_w->setObjectName(QString::fromUtf8("R_pb_w"));
gridLayout->addWidget(R_pb_w, 2, 0, 1, 2);
dialog->setWindowTitle(QApplication::translate("dialog", "dialog", 0, QApplication::UnicodeUTF8));
R_pb_w->setText(QApplication::translate("dialog", "Wy\305\233lij", 0, QApplication::UnicodeUTF8));
connect(R_pb_w,SIGNAL( clicked() ), this, SLOT(Trejestracja("a","b")));
dialog->exec();
void klient::Trejestracja(QString l,QString h)
{
tcpSocket->write("R \n");
tcpSocket->write("!"+l.toLatin1()+"!" + h.toLatin1() + "\n");
}
To copy to clipboard, switch view to plain text mode
Bookmarks