Hi all, I’m in the process of using QT creator on the QT cross platform code.
Could you tell me the process of changing the up and down button to allow scan up and down, ie the up button stays on and tunes up, until pressed again to stop the scan.
Rob
You need to look at mouse up and mouse down events and tie them to functions in the object inspector. On a mouse down event you start scanning – e.g. based on a timer interrupt that you stop on mouse up. I would cheat and use global variables for frequency and increment/decement.
It is not trivial and I think you will find the FCD does not step quietly so you may need to impliment a mute while changing frequency.
Hi all, I’m in the process of using QT creator on the QT cross platform code.
Could you tell me the process of changing the up and down button to allow scan up and down, ie the up button stays on and tunes up, until pressed again to stop the scan.
Rob
You need to look at mouse up and mouse down events and tie them to functions in the object inspector. On a mouse down event you start scanning – e.g. based on a timer interrupt that you stop on mouse up. I would cheat and use global variables for frequency and increment/decement.
It is not trivial and I think you will find the FCD does not step quietly so you may need to impliment a mute while changing frequency.
see http://doc.trolltech.com/4.3/qtimer.html
Mike
Thanks for the information Mike.
73