What are the values of 'rect' when you add this code below?:
Qt Code:
  1. QRect rect = temperature.geometry();
To copy to clipboard, switch view to plain text mode