qtnetwork Questions

4

Solved

Original question was slightly different but part of a more major question. I am trying to build Qt 5.2 as static with static OpenSSL on Windows. My final goal is to ship a single binary without...
Rockel asked 30/12, 2013 at 16:11

3

Solved

I am trying to send a "PATCH" request to my firebase application.As far as I read QNetworkManager doesn't support "Patch" request. How can I send "PATCH" request ?
Precipitant asked 3/12, 2015 at 12:10

4

Solved

Currently I use this code for retrieving the ping of a target system. However it works so far only under linux and it is likely dependent on the locale settings. To add support for windows will b...
Antisepsis asked 8/4, 2014 at 11:6

2

I have doubts how should I use QEventLoop. I have 2 pieces of code, both of them work for me (get web resource downloaded). First one: QNetworkAccessManager *manager = new QNetworkAccessManager(...
Phenyl asked 4/4, 2015 at 17:47

2

Solved

I am attempting to obtain mac address on windows xp using this code: QString getMacAddress() { QString macaddress="??:??:??:??:??:??"; #ifdef Q_WS_WIN PIP_ADAPTER_INFO pinfo=NULL; unsigned long l...
Jointress asked 30/9, 2011 at 11:53

2

I have a test page setup at http://mlecturedownload.com/test-qt.php that has the following code: <?php $foo = $_GET['foo']; if ($foo == "0" || $foo == "1") { echo $foo; } else { echo "Invali...
Closemouthed asked 19/1, 2013 at 17:17

4

Solved

I have a Qt Quick application using the following modules QT = core gui qml quick widgets \ core-private gui-private \ multimedia printsupport` which I deploy on OS X. Now my main binary as we...
Colicweed asked 10/6, 2015 at 9:46

3

Solved

QNetworkAccessManager can do requests asynchronously, and time.sleep(secs) can suspend the execution for the given number of seconds. I was confused by the code below. Is t2 here always greater tha...
Ictus asked 21/12, 2014 at 14:54

2

Solved

How to get the host name of my desktop PC? Like this, to get system information for Symbian OS: http://developer.nokia.com/community/wiki/Get_device_information_using_Qt
Sexennial asked 18/12, 2014 at 9:43

1

Solved

Please advise how can I setup default connection timeout without using blocking waitForConnected() method? I noticed that socket emit error signal (QAbstractSocket::SocketTimeoutError) after about ...
Gluttony asked 16/8, 2014 at 21:8

2

What's the proper way to do a synchronous QNetworkAccessManager::get ? The qt wiki offers an approach, but states "it is not recommended to use this in real applications." The mailinglist...
Cannes asked 6/8, 2012 at 12:30

1

Let’s see if you can shed some light on my problem. [C++ with Qt 5.2, using Qt Creator] Situation: I’ve got a PC with several local IP addresses assigned to the same interface (IP Aliases). The ro...
Mosra asked 22/1, 2014 at 16:24

2

Solved

In the following function, manager will emit finished(QNetworkReply*) signal, then the slot function getCategories(QNetworkReply*) will be called. void getCategories() { connect(manager, SIGNA...
Liew asked 23/2, 2014 at 12:52

1

Solved

Note: I also posted this on the PyQt mailinglist -- I'll answer my own question here if a good answer comes up there. I'm having problems with occasional segfaults when executing QApplication.quit...
Kopans asked 11/2, 2014 at 21:44

1

I am working in Qt 5 and struggling with a multipart upload. My script is as close to the docs as possible: QUrl testUrl("http://localhost/upload/test.php"); QNetworkRequest request(testUrl); ...
Borrell asked 21/6, 2013 at 12:19

1

Is there any way to see the data that will be sent (or has been sent) during (or after) a call to QNetworkAccessManager::post(QNetworkRequest,QByteArray) on the client side? In other words, I woul...
Lovelady asked 5/5, 2013 at 7:46

1

Solved

I am using the following code to get the MAC ID in Qt. main.cpp #include <QtCore/QCoreApplication> #include "QtNetwork/QNetworkInterface" #include "QString" QString getMacAddress() { fore...
Rhotacism asked 8/3, 2013 at 6:10

2

Is there any simple way to send a file to server with the filename included so that the filename in server and client are exactly the same? Here is my code Sender QString path = QApplication::ap...
Tipcat asked 10/12, 2012 at 12:9

1

When I use my QT application to download this page: https://service.oneaccount.com/onlineV2_B/OSV2?event=login&pt=3 with QNetworkAccessManager->get(url), I got a network error (QNetworkReply::N...
Afternoon asked 16/11, 2012 at 0:51

5

I am trying to implement FTPClient in using QT Network . How can i handle exceptional cases like during downloading network cable is unplugged , not internet connection gone etc.. ? How can my FT...
Veron asked 1/12, 2010 at 12:7
1

© 2022 - 2024 — McMap. All rights reserved.