// 탭 전환 ui->tabWidget->setCurrentIndex(1); // 탭 아이콘 QIcon Img1(QPixmap("/home/pi/User.png")); ui->tabWidget->setTabIcon(0, Img1); QIcon Img2(QPixmap("/home/pi/stats.png")); ui->tabWidget->setTabIcon(1, Img2); QIcon Img3(QPixmap("/home/pi/earth.png")); ui->tabWidget->setTabIcon(2, Img3);
1. #include 추가 2. qDebug()
this->move(100, 200); // x, y
// 자체 한글 표시 void MainWindow::on_BtnMsg_clicked() { QMessageBox::information(this, kor("테스트"), kor("대한사람 대한으로 길이 보전하세!")); } QString MainWindow::kor(QString str) { return QString::fromLocal8Bit(str.toStdString().c_str()); } // 한글 인코딩 (외부 통신 데이터 수신) QString toUniString(char *str) { // QTextCodec * codec = QTextCodec::codecForName("UTF-8"); QTextCodec * codec = QTextCodec::codecForName("eucKR"); //..
MessageBox::information(this, "테스트", "ㅋㅋㅋ");
this->setWindowFlags(Qt::FramelessWindowHint);
- Total
- Today
- Yesterday