Move #include of xlib into source file to avoid conflicts with qt.
Set first icon selected. Dont use signal slots for completion. Use Linedit Focus loss instead of intercepting qApp (QEvent::ApplicationStateChange).
Let the position after showing be configurable.