I'm new in QT and I was given a project from my senior..

In this project I am not using widget like slider, spinbox, etc. I just want to display the changes of the value in variable.
For example, I have a variable named x with integer type. And there is a loop that changes the value of x. I need to make ui lcd number to display the changes of x's value. When I use loop, the result display always displaying the last value of x at the end of the loop. How to do it? I have searched through google and I don't find the answer. I want to display the value in lcd number without using widget like slider, etc.

Sorry if my english is not good enough.
Any solution will help..