1. Removed shared_ptr for Qt objects to prevent SEGFAULT.