I am try to develop app for android to generate the random number.
-
I have write this below code for generate the random number from 0 to 1 and 1 to 100.
i have used two kits.- Android Qt 5.15.2 Clang Multi-Abi
- Desktop Qt 5.15.2 MSVC2019 32bit
Here I have share the link of code and video.
Here is the link of code and demo video.
my issue is this app is working fine on the desktop. when I clicked on one button then one thread has start and other is stop. and vice-versa for second button. but when run in android then if we clicked one button then one thread has start and when we clicked second button the both thread run parallelly no one has been stop. i have upload the demo video and code into the above drive link.
please anyone help me i am stuck with this issue. i have not any idea about this issue. i cannot understand what is the issue. please help me.
-
jsulm Lifetime Qt Championreplied to dev_liya on 2 Feb 2022, 11:42 last edited by jsulm 2 Feb 2022, 11:43
@dev_liya Why do you need threads to generate random numbers?!
You can do this way easier using QTimer...
1/2