hey this is my code and It says that 'ui' was not declared

Dialog:ialog(QWidget *parent) :
QDialog(parent),
ui(new Ui:ialog)
{
ui->setupUi(this);

ui->treeWidget->setColumnCount(2); //and it says there is a problem there too about ->treeWidget must point to class/struct/pointer
AddRoot("hello", "world");
}

Dialog::~Dialog()
{
delete ui;
}


void AddRoot(QString name, QString description)
{
QTreeWidgetItem *itm = new QTreeWidgetItem (ui->treeWidget);

itm->setText(0, name);
itm->setText(1, description);
ui->treeWidget->addTopLevelItem(itm);

}