Hi,
I'm trying to use the QtBearer classes, but the compiler gives me an error saying "ISO C++ forbids declaration of 'QNetworkSession' with no type." I think it's unable to locate the needed files for using QtBearer, what do I change so the intellisense and compiler would recognize it?

The example project bearer could compile and run, so maybe just something missing in my pro file?

Qt Code:
  1. QT += core gui network
  2.  
  3. TARGET = TestBearer
  4. TEMPLATE = app
  5.  
  6. SOURCES += main.cpp\
  7. mainwindow.cpp \
  8. serverconnection.cpp
  9.  
  10. HEADERS += mainwindow.h \
  11. serverconnection.h
  12.  
  13. FORMS += mainwindow.ui
  14.  
  15. CONFIG += mobility
  16. MOBILITY = bearer
  17.  
  18. symbian {
  19. TARGET.UID3 = 0xe1b89784
  20. TARGET.CAPABILITY += NetworkServices ReadUserData
  21. TARGET.EPOCSTACKSIZE = 0x14000
  22. TARGET.EPOCHEAPSIZE = 0x020000 0x800000
  23. }
To copy to clipboard, switch view to plain text mode