Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 5.4 final - Undefined class QNetworkProxy when compiling for Windows Runtime 64bit
Forum Updated to NodeBB v4.3 + New Features

Qt 5.4 final - Undefined class QNetworkProxy when compiling for Windows Runtime 64bit

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nando76
    wrote on last edited by
    #1

    Hi,

    i try to compile my application on windows 8.1 using MSVC 2013 (express) an Qt 5.4 (final)

    When selecting: "Qt 5.4.0 Windows Runtime 64bit" it seems the QNetwork lib is not found...?

    @Pilot.hpp:188: error: C2079: 'Pilot::m_networkProxy' uses undefined class 'QNetworkProxy'@

    Any idea what this could be?

    Greetings
    Nando

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Maybe silly questions but:

      • Are you including QNetworkProxy in Pilot.hpp ?
      • Do you have QT += network in your pro file (IIRC it should be on by default unless you have a QT = somewhere)

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nando76
        wrote on last edited by
        #3

        Hi,

        yes i include:
        @#include <QtNetwork>@

        and when i click on the QNetworkProxy in the header declaration:
        @QNetworkProxy m_networkProxy;@ and press F1 qtcreator opens the correct
        QNetworkProxy documentation site. I also checked the Qt installation (5.4 final) and every thing seem ok. (headers are there for winrt platform). I didn't change anything in the Qt installation. Just installed it with online installer to standard localtion: C:\Qt

        BUT i first installed mingw Qt only and then later added Windows Runtime Qt by calling Maintanace Tool and installing it.

        yes my .pro file looks like this (it is a static lib)
        @
        QT += core sql network gui widgets

        TARGET = libapp
        TEMPLATE = lib
        CONFIG += staticlib
        MOBILITY = systeminfo

        SOURCES += ....
        HEADERS += ....
        @

        Really strange... When i compile it for MSVC 64 bit Desktop it compiles fine..
        Only for Windows Runtime 64 i have this problem.

        Greetings
        Nando

        [quote author="SGaist" date="1419284692"]Hi,

        Maybe silly questions but:

        • Are you including QNetworkProxy in Pilot.hpp ?
        • Do you have QT += network in your pro file (IIRC it should be on by default unless you have a QT = somewhere)
          [/quote]
        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved