QT 6.6.0. C++ camera issue

I am new to QT and I can’t figure out why my code is not working. It does not matter whether the camera is connected to the PC or not, my app crashes. The crash is probably caused by m_captureSession related code lines in mainwindow.cpp. mainwindow.h: #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QtCore> #include … Read more

unresponsive clicking on ttk combobox [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 6 … Read more

NEURAL-NETWORK: AttributeError: module ‘keras.api._v2.keras’ has no attribute ‘__version__’

ErrorAttributeError: module ‘keras.api._v2.keras’ has no attribute ‘version‘ I have just started the Neural Network and getting this error when i am running the flowing code:\ I have try reinstalling the tensorflow and also update the pip but it is not working. The same code is working on google collab. Does this answer your question? How … Read more

Is it possible to fill pygame Surface with a color while keeping alpha layer intact without making another surface? [duplicate]

This question already has answers here: Is it possible to change sprite colours in Pygame? (1 answer) Changing colour of a surface without overwriting transparency (1 answer) Closed 22 hours ago. This post was edited and submitted for review 22 hours ago. I have a set of surfaces that are all white with pixel alpha … Read more

How to connect Visual Studio Code to my Docker Container?

colleagues. I just installed Debian 12 on my PC for work; I also use Visual Studio Code and Docker. In my company’s project, we use ESLint, Prettier, and Husky. The issue is that I’m using my development environment with Docker, and therefore, the libraries that allow me to use the aforementioned tools are not utilized … Read more

How to use android MediaPlayer class to play a sound in a loop

I’m making a metronome app. This means I need to play a sound in a loop for a few times and then every some number of times play another sound. My first approach to playing a sound in a loop is as follows: fun startMetronome(){ isPlaying = true upbeat = MediaPlayer.create(this, R.raw.upbeat) CoroutineScope(Dispatchers.IO).launch { while(isPlaying) … Read more

how to upload video in spring boot

I want to upload video using spring boot and I followed a certain tutorial in order to achieve that but I am getting this error in the logcat when I tried to upload the video. Cannot delete C:\Users\HP\AppData\Local\Temp\tomcat.8080.13279303856254081018\work\Tomcat\localhost\ROOT\upload_9bbd6e73_7a76_4ae8_bd76_5e33db6d9dab_00000000.tmp. I need some help on how to resolve it please This is my code @RestController public class … Read more

Javascript – arrow functions this in event handler?

I’m new to ES6, and can’t quite get this to work: $(this) returns undefined on click? dom.videoLinks.click((e) => { e.preventDefault(); console.log($(this)); var self = $(this), url = self.attr(configuration.attribute); eventHandlers.showVideo(url); // Deactivate any active video thumbs dom.videoLinks.filter(‘.video-selected’).removeClass(‘video-selected’); // Activate selected video thumb self.addClass(‘video-selected’); }); However if I change it so not be an arrow function like … Read more