using System;
using System.Collections.Generic;
using Qyoto;

public class Test : QGraphicsView
{
	QGraphicsItemGroup m_Group;

	public Test () 
	{
		QGraphicsScene scene = new QGraphicsScene(this);
		this.SetScene(scene);

		m_Group = new QGraphicsItemGroup();
		scene.AddItem(m_Group);

		QGraphicsTextItem item = new QGraphicsTextItem("HI");
		item.SetParent(this);
		m_Group.AddToGroup(item);

		Console.WriteLine(m_Group.Children().Count);
	}

	public static void Main (string[] args)
	{
		new QApplication(args);

		Test w = new Test();
		w.Show();

		QApplication.Exec();
	}
}
