C++ (Qt)#include "mainwindow.h"#include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow){ ui->setupUi(this);} MainWindow::~MainWindow(){ delete ui;} void MainWindow::on_sendButton_clicked(){ sendButton->text="Tipa knopochka";}
C++ (Qt) sendButton->setText(tr("Tipa knopochka"));
C++ (Qt) #include "mainwindow.h"#include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow){ ui->setupUi(this);} MainWindow::~MainWindow(){ delete ui;} void MainWindow::on_sendButton_clicked(){ sendButton->setText(tr("Tipa knopochka"));}
C++ (Qt)#include "mainwindow.h"#include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow){ ui->setupUi(this);} MainWindow::~MainWindow(){ delete ui;} void MainWindow::on_sendButton_clicked(){ ui->sendButton->setText(tr("Tipa knopochka"));}
C++ (Qt)#include <QtGui/QApplication>#include "mainwindow.h" int main(int argc, char *argv[]){ QApplication a(argc, argv); MainWindow w; w.show(); return a.exec();}
private slots:void on_sendButton_clicked();