Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-70273

QNetworkAccessManager Qt 5.7.1 strange behavior

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P4: Low
    • None
    • 5.7.1
    • Network
    • None
    • Linux embedded OS
    • Other

    Description

      down vote favorite
       
      I'm developing a simple application with QNetworkAccessManager, I'm able to fire http requests and receive replies but everytime I instantiate a QNetworkAccessManager object, my application starts writing on the shell a "Not supported" message. I tried compiling the sample appication http://doc.qt.io/qt-5/qtnetwork-download-example.html with the same behavior... somone has experienced the same problem? Should I instantiate the QNetworkAccessManager objecton Qt 5.7.1 using particular setting? (unfortunately I can't update to Qt 5.11) Any help would be greatly appreciated

      QNetworkAccessManager *manager = new QNetworkAccessManager(this);

      connect(manager, SIGNAL(finished(QNetworkReply*)), this, SLOT(replyFinished(QNetworkReply*)));

      QNetworkRequest *request = new QNetworkRequest(QUrl("http://www.someurl.com"));

      manager->get(*request);

      Attachments

        1. log.txt
          0.1 kB
        2. main.cpp
          0.5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tpochep Timur Pocheptsov
            edonag Edoardo Ng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes