Fatal error in Qt 6.7
-
Hello guys, I have the following problem, I have installed the new Qt 6.7, and what happens is that when I show system information using:
QOperatingSystemVersion::current();
or I want to do this:
setWindowTitle(qApp->applicationName()+" - "+fileInfo.fileName()+"[*]");
For example, I get a warning in Windows Defender that there is a Trojan, I don't know if it is an error in my system or something in Qt itself, but it happens after removing some of those lines, the program runs without problems, I leave some screenshots, I appreciate any suggestions.
The funny thing is that when I use another version of Qt no warning is shown.
Hello guys, I have the following problem, I have installed the new Qt 6.7, and what happens is that when I show system information using:
QOperatingSystemVersion::current();
or I want to do this:
setWindowTitle(qApp->applicationName()+" - "+fileInfo.fileName()+"[*]");
For example, I get a warning in Windows Defender that there is a Trojan, I don't know if it is an error in my system or something in Qt itself, but it happens after removing some of those lines, the program runs without problems , I leave some screenshots, I appreciate any suggestions.The funny thing is that when I use another version of Qt no warning is shown.
Fatal error in Qt 6.7
I have the clang compiler and Qt 6.7 installed
-
@lincoln said in Fatal error in Qt 6.7:
I have installed the new Qt 6.7
How exactly?
It is most probably a false positive from Windows Defender. -
You could upload your executable (if Windows Defender will allow you) to one of the online virus meta-scanners, like https://www.virustotal.com, to convince yourself this is a Defender false-positive (some very artificial AI). Then you could "Amenazas permitidas."
-
@lincoln
The executable may have been created but Windows does not want to run it, or maybe Defender moves the executable to some quarantine directory.Rebuild from scratch and/or temporarily disable Defender (assuming you know what you are doing). See if the compile/link creates
D:\QtProjects\ejemplo_1-debug\ejemplo_1.exe
(before you try to run it) and hand it to @ChrisW67's link. -
Indeed, when I deactivate Windows Defender, the executable is created, but I am still intrigued by why this happens. In the message that Defender shows me, it indicates that I have been infected with a Trojan, but it is curious that when I use, for example, something like this:
QOperatingSystemVersion::current();
The error is shown and when I remove it it runs normally, even when defender is activated. What I will do is format my disk and reinstall Windows again.
-
@lincoln said in Fatal error in Qt 6.7:
What I will do is format my disk and reinstall Windows again.
Blimey!
From what little I know, virus scanners are often looking for "signature patterns" in executables. It might have nothing to do with the call in the code, might just be the binary pattern bits that code happens to produce.
-
@JonB
I already tried several things, as @ChrisW67's mentioned, I ran the executable through virustotal, and it actually showed me that it was infected with a Trojan called wacatac, so I think that's why, that's why I'm going to format the disk and reinstall the operating system, no. There is another one, I don't know what else to try. -
@lincoln said in Fatal error in Qt 6.7:
and it actually showed me that it was infected with a Trojan called wacatac,
OK, fair enough. This is an executable you have built on your PC with Qt? And depends on whether you have
QOperatingSystemVersion::current();
orsetWindowTitle(qApp->applicationName()+" - "+fileInfo.fileName()+"[*]");
in it? Very odd. Good luck reinstalling Windows.