P
P
Pavel K2020-10-17 00:24:06
Qt
Pavel K, 2020-10-17 00:24:06

How to correctly set the value of a type variable with a fixed number of digits?

I'm still trying to defeat types in the ActiveX connected to Qt.
There is a function that takes a type with a fixed number of digits:
This is how it seems to be described "64-bit number with 4 fractional digits".
Qt after dumpcpp set that it is qlonglong.
The question itself is how to write it down now? Tried

N = 2;  
qlonglong val = N * 10000;

but the function gives out that the output number is "20000".
Tell me, please, how then to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel K, 2020-10-17
@PavelK

So, the debugger went through the guts of Qt - this, apparently, is a "Bug", not a "Feature".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question