Only remove icon tree if necessary.
Use Qt resources for the window icon.