If you look at main.cpp in that example, you will see that, except for the comments, it is the same as what you had before you added anything to yours. While these are kind of old, VoidRealms does a pretty good job of giving a basic overview of how it works, and how Creator fits in. Some people do not like videos, but I find these videos helpful for a quick overview when using a widget for the first time. Also, it is a quicker way for me to find out the right one to use, as opposed to reading through the docs (I read slow).