#include "networkinformation.h"#include "ui_networkinformation.h"networkinformation::networkinformation(QWidget *parent) : QWidget(parent), ui(n...
分类:
其他好文 时间:
2014-10-08 02:00:24
阅读次数:
259
#-*-coding:cp936-*-fromPyQt4.QtCoreimport*fromPyQt4.QtGuiimport*classInlineEditor(QWidget):_MUTE='MUTE'def__init__(self,parent):QWidget.__init__(self,...
分类:
其他好文 时间:
2014-10-04 17:17:26
阅读次数:
184
布局大致分水平布局,竖直布局 ,网格布局等等。。
#include
#include //布局
#include //滑块
#include //微调框
#include //标签
int main(int argc,char *argv[])
{
QApplication app(argc,argv);
QWidget *w=new QWidget;
w->setWi...
分类:
其他好文 时间:
2014-09-26 23:24:28
阅读次数:
301
Qt5下,QWidget系列从QtGui中被剥离出去,成为单独的QtWidget模块。随着Qt Quick2的引入,QtDeclarative也逐渐和QWidget系列也脱离关系。 最终:在Qt5下的GUI编程,有两套不同的东西 QtWidget (使用一个被称为 BackingStore 的东西)...
分类:
其他好文 时间:
2014-09-12 14:54:33
阅读次数:
202
使用在windows下面的windows+R实现的运行程序
widget.h
#ifndef WIDGET_H
#define WIDGET_H
#include
#include
namespace Ui {
class Widget;
}
class Widget : public QWidget
{
Q_OBJECT
public:
...
QLineEdit 类代表编程框,它可以让用户输入一个单行文本。 构造 QLineEdit 类支持以下构造函数:[plain]view plaincopyQLineEdit(QWidget*parent=0);QLineEdit(constQString&contents,QWid...
分类:
其他好文 时间:
2014-08-26 19:03:36
阅读次数:
268
今天在代码中遇到这样一个问题,自己感觉槽和函数都写的没错,但是就是不执行槽函数,因为是一个定时器的使用,即定时时间到了就执行槽函数。 1 SeventhWizardPage::SeventhWizardPage(QWidget *parent) : 2 QWizardPage(parent)...
分类:
其他好文 时间:
2014-08-25 09:52:44
阅读次数:
254
#-*-coding:utf-8-*-#python:2.x__author__='Administrator'fromPyQt4.QtGuiimport*fromPyQt4.QtCoreimport*fromPyQt4.Qtimport*classWigglyWidget(QWidget):def...
分类:
其他好文 时间:
2014-08-24 17:53:42
阅读次数:
787
#coding=gbkfromPyQt4importQtGui,QtCoreimportrandomclassMyWidget(QtGui.QWidget):def__init__(self,parent=None):ifparentisNone:self.app=QtGui.QApplicatio...
分类:
其他好文 时间:
2014-08-21 11:23:43
阅读次数:
220
fromPyQt4importQtGui,QtCoreclassTest(QtGui.QWidget):def__init__(self,items,parent=None):self.app=QtGui.QApplication([])super(Test,self).__init__(paren...
分类:
其他好文 时间:
2014-08-21 11:12:03
阅读次数:
214