Crash on exit in qt5winextras.dll Windows XP 32 - c++

GUI widgets(c++) application is built with the latest Qt Creator, Qt 5.4.1 MinGW SDK(qt-opensource-windows-x86-mingw491_opengl-5.4.1.exe) on Windows 8.1 x64
PRO file:
QT += core gui network winextras
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
Everything is by defaults, no special settings. App runs and works on Windows XP x86 SP3 but when closed it crashes giving a generic windows "Send error to Windows" dialog.
Windows Logs show that the crash occured at qt5winextras.dll version 5.4.1.0 adress 0x00008009
Doesn't crash on Windows 7 and 8.1
Can this be Qt bug? How to fix this?
Updated
My code was similar to musicplayer example. I've compiled the musicplayer Qt's example and it also crashes.
Qt5.4.1\Examples\Qt-5.4\winextras\musicplayer
Also, musicplayer doesn't play music on Windows XP 32

I had a similar problem.
I think you should exec code (which related with winexras) only if windows version greater than XP.
I did something like this:
if(QSysInfo::windowsVersion >= QSysInfo::WV_VISTA)
{
taskbarButton = new QWinTaskbarButton(this);
taskbarButton->setWindow(windowHandle());
taskbarProgress = taskbarButton->progress();
connect(positionSlider, SIGNAL(valueChanged(int)), taskbarProgress, SLOT(setValue(int)));
connect(positionSlider, SIGNAL(rangeChanged(int,int)), taskbarProgress, SLOT(setRange(int,int)));
}

Related

Cannot run the program in the Qt Creator environment

My Qt Creator Verison is 5.15.2 (MSVC 2019 64bit) And I want using Qt 6.2 rc
Now I have a project that can be compiled normally but cannot run in the Qt Creator environment.But I manually run this program in Explorer, it can work normally. That is to say, Qt Creator built it but this software cannot be debugged in Qt
By the way, this project can run normally when it is newly created. Then I introduced spdlog and sql related libraries in this project (but not used), and after adjusting the directory structure, it cannot be used in Qt Creator.
Console Output:
17:06:23: Starting E:\Code\Clion\CadenceLibQML\CadenceLibQML\build-CadenceLibQML-Desktop_Qt_6_2_0_MinGW_64_bit-Debug\CadenceLibQML.exe ...
17:06:23: The program ends abnormally
17:06:23: The process was ended forcefully.
17:06:23: E:\Code\Clion\CadenceLibQML\CadenceLibQML\build-CadenceLibQML-Desktop_Qt_6_2_0_MinGW_64_bit-Debug\CadenceLibQML.exe crashed.

Packaging the Qt 5.7 Virtual keyboard example on Surface Pro tablet

I have run the Qt Virtual Keyboard example successfully with Qt 5.7 in Qt Creator on Windows 10 desktop, but if I try to run the same exe on Windows Surface Pro (running on Windows 10) by including all necessary dlls and plugins, I am just getting the QML lineedits, but the keyboard is not popping up and the application just hangs. The exe isn't telling what else it requires to make it run.
The package I created is here:

Qt quick applications glitching

I opened some Qt quick examples that comes with Qt and when I try to resize the window it starts to glitch.
This is an animated gif using the stoc example:
glitch http://105.imagebam.com/download/ZgcdXsQQukzkLCDchoYVrQ/44471/444703921/glitch.gif
My configuration is: Windows 10, 6 GB ram, i5, and using Qt 5.5.1 64bit MSVC 2013.
Is there any way of fixing it?

QStrings not showing when debugging with Qt Creator on Windows

I'm debugging a Qt 5.5 application with Qt Creator on Windows 10 using MSVC 2013 compiler.
CDB Debugger is set up in Qt Creator and I can start the debug session. However variable contents of Qt objects (QStrings...) can not be inspected, I just get the memory location, size etc.
I expect I'm missing for debugging helpers or the debugger extension mentioned here.
Any clues what to do?
I temporarily deleted qtcreatorcdbext.dll, started debugger (forcing to diplay an error) and moved the dll back. Now everything works.
It seems there was a problem with the setup procedure, maybe because debugging tools were installed after Qt Creator.
I had to update qtcreatorcdbext.dll in /lib/qtcreatorcdbext32 folder. My Qt creator installed separatly from the Qt pack so I copied the dll from the Qt installation/tools/qtcreator/lib/qtcreatorcdbext32 to the separatly installed qtcreator

Qt IDE doesn't show output

When i try to get my application output on terminal,It's get faile and don't show any things to me.
I am trying to change default terminal ,But problem not sloved!
Any idea?
My Qt version :
Qt Creator 2.5.2 Based on Qt 4.8.2 (32 bit)