随笔分类 -  qt

摘要:一般在andconda环境中,自带pyqt5 在pip install pyqt5之后,需要安装pyqt5_tools。 对于pycharm需要配置pyqt Designer和pyqt UIC。 Designer生成的.ui文件需要通过pyqt UIC转化为.py文件 但有时会出现 具体是pytho 阅读全文
posted @ 2019-01-01 08:39 体育.委员 阅读(770) 评论(0) 推荐(0)
摘要:先来看一下最熟悉的QMessageBox::information。我们在以前的代码中这样使用过: QMessageBox::information(NULL, "Title", "Content", QMessageBox::Yes | QMessageBox::No, QMessageBox:: 阅读全文
posted @ 2017-09-08 11:23 体育.委员 阅读(45953) 评论(1) 推荐(3)
摘要:1. 所有Qt版本下载地址: http://download.qt.io/archive/qt/ 2. 所有Qt Creator下载地址: http://download.qt.io/archive/qtcreator/ 3. 所有Qt VS开发插件下载地址: https://download.qt 阅读全文
posted @ 2017-09-05 15:20 体育.委员 阅读(455) 评论(0) 推荐(0)
摘要:http://download.qt.io/archive/qt/ USE [master]GO/****** Object: Database [BookDB] Script Date: 03/26/2017 10:45:11 ******/CREATE DATABASE [BookDB] ON 阅读全文
posted @ 2017-03-26 11:02 体育.委员 阅读(456) 评论(0) 推荐(0)
摘要:1. std::string转换成QString string std_str ("abc"); QString q_str = QString::fromStdString(std_str); 2. QString转换成std::string QString q_str("abc"); strin 阅读全文
posted @ 2017-02-21 14:48 体育.委员 阅读(212) 评论(0) 推荐(0)
摘要:QImage test2012::ImageCV2Qimg(IplImage* img){ assert(img!=NULL); int h = img->height; int w = img->width; int channel = img->nChannels; QImage qimg = 阅读全文
posted @ 2017-02-21 13:43 体育.委员 阅读(281) 评论(0) 推荐(0)
摘要:qt中函数paintEvent(QPaintEvent*)是被系统自动调用。 paintEvent(QPaintEvent *)函数是QWidget类中的虚函数,用于ui的绘制,会在多种情况下被其他函数自动调用。 1.QPainter类 这个类主要提供在窗体或者其他绘图设备上进行绘图的功能,在pai 阅读全文
posted @ 2016-11-28 22:19 体育.委员 阅读(6405) 评论(0) 推荐(0)
摘要:原文地址:http://www.cnblogs.com/li-peng/p/3644812.html 作者:李鹏 出处:http://www.cnblogs.com/li-peng/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究 阅读全文
posted @ 2016-11-25 22:34 体育.委员