qtui: Implement queue