自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 Qt 网络库各个类的信号

(一)QTcpServer类 void destroyed(QObject *obj = Q_NULLPTR) void **objectName**Changed(const QString &objectName) void acceptError(QAbstractSocket::SocketError socketError) void newConnecti

2017-10-23 20:52:17 906

原创 QTcpServer类

(一)public functions 1.QTcpServer(QObject *parent = Q_NULLPTR)2.virtual ~QTcpServer()3.void close()4.QString errorString() const5.virtual bool hasPendingConnections() const6.bool isListening() c

2017-10-23 20:36:48 860

原创 QT QAbstractSocket类

QAbstractSocket is the base class for QTcpSocket and QUdpSocket and contains all common functionality of these two classes 是QTcpSocket and QUdpSocket的基类;1.enum QAbstractSocket::SocketType: QAbstractS

2017-10-23 09:03:41 1196

原创 QT QHostAddress类

(一)构造函数 1.QHostAddress::QHostAddress(quint32 ip4Addr) *Constructs a host address object with the IPv4 address ip4Addr.2.QHostAddress::QHostAddress(quint8 *ip6Addr) *Constructs a host address object

2017-10-21 15:10:59 2920

原创 QT QNetworkDatagram类

The QNetworkDatagram class provides the data and metadata of a UDP datagram. QNetworkDatagram类提供UDP数据报的数据和元数据。 QNetworkDatagram可以与QUdpSocket类一起使用,以表示UDP数据报中包含的完整信息。1.QNetworkDatagram() 2.QNetworkDat

2017-10-21 11:56:13 3246

原创 QT QUdpSocket类

1.bool hasPendingDatagrams() const Returns true if at least one datagram is waiting to be read; otherwise returns false.2.bool joinMulticastGroup(const QHostAddress &groupAddress)3.bool joinMult

2017-10-21 11:19:53 1240

原创 python学习之路---(1)

1 在Python中有4种类型的数——整数、长整数、浮点数和复数。(-5+4j) 和(2.3-4.6j)是复数的例子。2 字符串 使用单引号(’):你可以用单引号指示字符串,就如同’Quote me on this’这样。所有的空白,即空格和制表符都照原样保留。 使用双引号(”):在双引号中的字符串与单引号中的字符串的使用完全相同,例如”What’s your name?”。 使用三引号(

2017-10-16 17:10:28 175

原创 C++ string操作

一 构造函数 string s1; string s2(s1); string s2=s1; string s3(“value”); string s3=”value”; string s4(n,’c’); string s5(cp,n);//s是cp指向的数组(字符数组)中前n个字符的拷贝,此数组至少应该包含n个字符 string s6(s,pos2);//s6是string s从

2017-10-09 19:43:32 3274

原创 c/c++ 字符转换为数字

1.单个字符如‘1’,‘2’,‘3‘.....转换为数字1,2,3;char c='1';int a=(int) c;//将得到字符'1'的ASCII码;int a=c-48;//将得到数字1;字符0的ascii值是48或者int a=c-'0';

2017-10-08 12:16:06 16308

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除