harivittal.hk
August 8th, 2009, 12:22 PM
hi! m new to qt programin..m nt understandin this piece of code..plz help.
here is the code:
"
namespace Ui
{
class MainWindowClass;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
private:
Ui::MainWindowClass *ui;
};
"
my doubt is why a class is defined in namespace,is tat allowed..is the word "namespace" a return type or acting as a datatype.
any help is appreciated..:(
here is the code:
"
namespace Ui
{
class MainWindowClass;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
private:
Ui::MainWindowClass *ui;
};
"
my doubt is why a class is defined in namespace,is tat allowed..is the word "namespace" a return type or acting as a datatype.
any help is appreciated..:(