Code:
#include <QtGui/QWidget>
#include "ui_TestN.h"
#include <qsysteminfo.h>
class TestN : public QWidget
{
Q_OBJECT
public:
TestN(QWidget *parent = 0);
~TestN();
private:
Ui::TestNClass ui;
private:
QSystemInfo *iNetwrokInfo; //error: ISO C++ forbids declaration of `QSystemInfo' with no type ...
};
You should not add the #include <qsysteminfo.h> into the header file. Instead add a forward declaration and include than the header in the source file 
Code:
#include <QtGui/QWidget>
#include "ui_TestN.h"
namespace QtMobility
{
class QSystemInfo;
}
class TestN : public QWidget
{
Q_OBJECT
public:
TestN(QWidget *parent = 0);
~TestN();
private:
Ui::TestNClass ui;
private:
QtMobility::QSystemInfo *iNetwrokInfo;
};