added core profile example, which is a modified version of seanharmers version for Qt 4.8