上一页 1 ··· 5 6 7 8 9
摘要: 1.安装pip,https://pypi.org/project/setuptools/ 2.pip install virtualenvwrapper-win 阅读全文
posted @ 2018-06-17 10:59 呵哈呵 阅读(11) 评论(0) 推荐(0)
摘要: 直接在类内部定义使用的函数就是为了改变类内部的数据,调用的函数都是为了改变本类的数据。相当于前面省略了this指针。 阅读全文
posted @ 2018-05-04 18:45 呵哈呵 阅读(16) 评论(0) 推荐(0)
摘要: qt的构造函数parent的作用是: 构造函数把父对象设置给父类,之后通过继承父类把自己的父对象设置为parent。 阅读全文
posted @ 2018-05-02 17:53 呵哈呵 阅读(14) 评论(0) 推荐(0)
摘要: QString string = QWidget::fontMetrics().elidedText("this is need elide",Qt::ElideMiddle,100); QWidget::fontMetrics.elidedText()用于省略一部分文字。fontmetric字体指 阅读全文
posted @ 2018-04-25 14:47 呵哈呵 阅读(9) 评论(0) 推荐(0)
摘要: QColor color = QColorDialog::getColor(Qt::red,this,tr("颜色对话框"),QColorDialog::ShowAlphaChannel); QColorDialog dialog(Qt::red,this); dialog.setOption(QC 阅读全文
posted @ 2018-04-24 17:17 呵哈呵 阅读(7) 评论(0) 推荐(0)
摘要: 参考文章,很感谢! #ifndef WIDGET_H #define WIDGET_H #include <QWidget> namespace Ui { class Widget; } class Widget : public QWidget { Q_OBJECT public: explici 阅读全文
posted @ 2018-04-24 14:49 呵哈呵 阅读(78) 评论(0) 推荐(0)
摘要: qt的close和quit,一个是用来关闭窗口的,一个是用来关闭程序的,但是他们之间也有关系。qt手册里有 Closes this widget. Returns true if the widget was closed; otherwise returns false. First it sen 阅读全文
posted @ 2018-04-24 14:05 呵哈呵 阅读(66) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9