How to send a file in Qt?
问题 I'm trying to send a file from client to server. But it sends only a part of file. Seems like it happens when the size of file is more than 2Mb. What can be the problem? Sorry if it's a stupid question but I can't find an answer in Google. This is client cpp: #include "widget.h" Widget::Widget(QWidget *parent) : QWidget(parent) { progressBar = new QProgressBar(this); tcpSocket = new QTcpSocket(this); fileLabel = new QLabel(this); progressLabel = new QLabel(this); fileBtn = new QPushButton