01 2014 档案
【003】模态和非模态对话框
摘要:在MyWidget构造函数 进行如下 3 个实验。 1 MyWidget::MyWidget(QWidget *parent) : 2 QWidget(parent),ui(new Ui::MyWidget) 3 4 { 5 ui->setupUi(this); 6 /*1.The DLG will disappear qucikly*/ 7 QDialog dialog(this); 8 dialog.show(); 9 10 /*2.*/11 //QDialog *dialog = new QDialog(this);... 阅读全文
posted @ 2014-01-05 17:42 小螺号giao~giao~giao
C语言判断大小端
摘要:大小端 阅读全文
posted @ 2014-01-05 16:39 小螺号giao~giao~giao
【002】利用程序调试显示Window and Dialog Widget信息
摘要:一、设置断点,调试(略)二、利用qDebug 先看一下窗口的几何布局Qt 助手 ---->Window and Dialog Widget以下为程序: 1 #include 2 #include 3 #include 4 5 /*主要演示 使用 qDebug 函数输出调试信息*/ 6 int main(int argc,char *argv[]) 7 { 8 QApplication a(argc,argv); 9 QWidget widget;10 widget.show();11 12 int x = widget.x();13 /*输出调... 阅读全文
posted @ 2014-01-03 21:36 小螺号giao~giao~giao