Update Qt_window.py

Support the new "Segmented sample" feature