if (chet_dat<=12) { switch(chet_dat) { case 1: { QString name_file1 = "datchic1.txt"; QFuture <void> future1a= QtConcurrent::run(tempiratura_datchika,tn1,name_file1,nms,ftHandle1,serial1); break; } case 2: { QString name_file2 = "datchic2.txt"; QFuture <void> future2a = QtConcurrent::run(tempiratura_datchika,tn2,name_file2,nms,ftHandle1,serial2); break; } case 3: { QString name_file3 = "datchic3.txt"; QFuture <void> future3a = QtConcurrent::run(tempiratura_datchika,tn3,name_file3,nms,ftHandle1,serial3); break; } case 4: { QString name_file4 = "datchic4.txt"; QFuture <void> future4a = QtConcurrent::run( tempiratura_datchika,tn4,name_file4,nms,ftHandle1,serial4); break; } case 5: { QString name_file5 = "datchic5.txt"; QFuture <void> future5a = QtConcurrent::run( tempiratura_datchika,tn5,name_file5,nms,ftHandle1,serial5); break; } case 6: { QString name_file6 = "datchic6.txt"; QFuture <void> future6a = QtConcurrent::run( tempiratura_datchika,tn6,name_file6,nms,ftHandle1,serial6); break; } case 7: { QString name_file7 = "datchic7.txt"; QFuture <void> future7a = QtConcurrent::run( tempiratura_datchika,tn7,name_file7,nms,ftHandle1,serial7); break; } case 8: { QString name_file8 = "datchic8.txt"; QFuture <void> future8a = QtConcurrent::run( tempiratura_datchika,tn8,name_file8,nms,ftHandle1,serial8); break; } case 9: { QString name_file9 = "datchic9.txt"; QFuture <void> future9a = QtConcurrent::run( tempiratura_datchika,tn9,name_file9,nms,ftHandle1,serial9); break; } case 10: { QString name_file10 = "datchic10.txt"; QFuture <void> future10a = QtConcurrent::run(tempiratura_datchika,tn10,name_file10,nms,ftHandle1,serial10); break; } case 11: { QString name_file11 = "datchic11.txt"; QFuture <void> future11a = QtConcurrent::run( tempiratura_datchika,tn11,name_file11,nms,ftHandle1,serial11); break; } case 12: { QString name_file12 = "datchic12.txt"; QFuture <void> future12a = QtConcurrent::run(tempiratura_datchika,tn12,name_file12,nms,ftHandle1,serial12); break; }
QFuture <void> future1a= QtConcurrent::run(tempiratura_datchika,tn1,name_file1,nms,ftHandle1,serial1,tk1);