Qt 5.4 final - Undefined class QNetworkProxy when compiling for Windows Runtime 64bit
-
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 -
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)
-
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:\QtBUT 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 widgetsTARGET = libapp
TEMPLATE = lib
CONFIG += staticlib
MOBILITY = systeminfoSOURCES += ....
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]