Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
04-30-2013 06:30 AM
HTTP Networking sample.
The include #include <QtNetwork> gets error message "No such file or directory"
Solved! Go to Solution.
04-30-2013 09:54 AM
When going back to check the sample I can see it is being changed!
Include statement in applicationui.cpp says
but the hpp file is named named "application.hpp"
And other changes.
I sure hope that the person now doing the changes also really test the code. I will do nothing more until tomorrow
04-30-2013 10:08 AM
As a rule of thumb, to include Qt<Module> in your app you should always add QT += <module> to your .pro file (unless it was implicitly included by another module).
PS: If my first reply helped, you can perss "Accept as Solution" on it. This will add "Go to Solution" link at the end of your original post so other people can quickly find it.
04-30-2013 10:30 AM - edited 04-30-2013 10:33 AM
Try adding the individual header files within the QtNetwork folder that you need for your app...
#include <QtNetwork/qnetworkaccessmanager.h> #include <QtNetwork/qnetworkconfigmanager.h>
As reference it's located at:
04-30-2013 10:31 AM
because it doesn't exist.
Have a look under your NDK's target_10_x_y_z/qnx6/usr/include directory.
One way to get what you want is use the path relative to there. eg:
04-30-2013 10:33 AM
I made a try with the new code after correcting the discrepancy on application.hpp/applicationui.hpp
Regardless if I set the
QT += network
I get question maqrks on almost everything related to "Q" Must be a library missing??
04-30-2013 10:37 AM - edited 04-30-2013 10:37 AM
You can't#include <QtNetwork>
because it doesn't exist.
It should. Else, it's a bug. Qt always ships Qt<Module> header which, basically, conatins a bunch of includes of all the headers from the module. This saves you from including each class's header explicitly but may increase compilation time due to bloating the number of included files.