Qt 试用 (1)

qt 试用 (1)

- 如果语言不对,这么设置即可
set LANG=en_US
cd "C:\Documents and Settings\Administrator"
C:\QtSDK\QtCreator\bin\qtcreator.exe

- vc为compiler时的调试
需要安装debug tools for windows,安装后重新启动qt creater即可

- 写一个最简单的dialog程序,并添加一个按钮的消息映射
点右键,选择go to slot,选择onclieked
输入代码
void Dialog::on_pushButton_clicked()
{
    QMessageBox msgBox;
    msgBox.setText("The document has been modified.");
    msgBox.setInformativeText("Do you want to save your changes?");
    msgBox.setStandardButtons(QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel);
    msgBox.setDefaultButton(QMessageBox::Save);
    int ret = msgBox.exec();
}

- 入门视频
http://qt.nokia.com/products-cn/developer-tools-1/tools-flipper/cross-platform-ide/

Powered by Jekyll and Theme by solid

本站总访问量