2012年12月4日

qt 基础知识2

摘要: screenshotLabel = new QLabel; screenshotLabel->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding);//使用QSizePolicy::Expanding QLabel就会随着窗体的变化而变化 screenshotLabel->setAlignment(Qt::AlignCenter); // 对齐 screenshotLabel->setMinimumSize(240, 160); // 最小让qtextedit 不能输入,只读m_Logw=newQText.. 阅读全文

posted @ 2012-12-04 11:21 GIS-MAN 阅读(268) 评论(0) 推荐(0) 编辑

QMainWindows学习笔记

摘要: textEdit = new QPlainTextEdit; //富文本显示器 setCentralWidget(textEdit);//关闭窗体会触发void MainWindow::closeEvent(QCloseEvent *event){ }QMenu 可以添加qactionvoid MainWindow::createMenus(){ fileMenu = menuBar()->addMenu(tr("&File")); fileMenu->addAction(newAct); fileMenu->addAction(openAct); 阅读全文

posted @ 2012-12-04 11:09 GIS-MAN 阅读(481) 评论(0) 推荐(0) 编辑

2d graphics

摘要: QPainter can drawgeometric shapes (points, lines, rectangles, ellipses, arcs, chords, pie segments,polygons, and Bézier curves), as well as pixmaps, images, and text. Furthermore,QPainter supports advanced features such as antialiasing (for text andshape edges), alpha blending, gradient filling 阅读全文

posted @ 2012-12-04 10:47 GIS-MAN 阅读(224) 评论(0) 推荐(0) 编辑

导航