.....................................................................................................
```c QString val2hex( int d ) { QString Hex="0123456789ABCDEF"; QString h = Hex.mid( d&15, 1 ); while( d>15 ) { d >>= 4; h = Hex.mid( d&15,1 ) + h; } return h; } ```.....................................................................................................