I have a Qt application, I have added it to ~/.config/openbox/autostart.sh like this:
(sleep 5 && /home/user/UI/UI) &
When I start openbox from terminal, the Qt application opens as unusable gray box. If I launch xterm on openbox and then manually start the Qt application, it works fine. What am I doing wrong?