Why is my QT application not working ?
-
I built a Qt 5 application using Qt Creator on Windows 7 64 bit (using msvc 2010). The application runs perfectly on my computer but it won't work on other computers.
I copied all the .dlls which were shown as missing in Dependency Walker into the program folder and there is no error, but the apps just won't run.
I've tested it on Windows XP and Windows 7 64 and 32 bit.
What can I do in order to find out what's wrong?UPDATE: i installed Qt 4.8.4 (vs 2008) and msvc 2008 express and i compiled it and it's runs on other computers, with the .dlls of Qt4. maybe someone know what the problem with Qt5...
Thanks you
-
I built a Qt 5 application using Qt Creator on Windows 7 64 bit (using msvc 2010). The application runs perfectly on my computer but it won't work on other computers.
I copied all the .dlls which were shown as missing in Dependency Walker into the program folder and there is no error, but the apps just won't run.
I've tested it on Windows XP and Windows 7 64 and 32 bit.
What can I do in order to find out what's wrong?UPDATE: i installed Qt 4.8.4 (vs 2008) and msvc 2008 express and i compiled it and it's runs on other computers, with the .dlls of Qt4. maybe someone know what the problem with Qt5...
Thanks you
@xerio78 said in Why is my QT application not working ?:
I copied all the .dlls which were shown as missing in Dependency Walker into the program folder and there is no error, but the apps just won't run.
Simply put, this is way too error prone. Don't try to do it manually, use proper deployment to install your software. That is why there are tools like
win
/linuxdeployqt
. Please also read Deploying Qt Applications.As for you (apparently) changing to use Qt4, don't. Qt5 is already old, we are on Qt6, Qt4 is a long time ago. And may have bugs even if it runs.
-
This post is deleted!
-
C Christian Ehrlicher referenced this topic
-
@xerio78 said in Why is my QT application not working ?:
I copied all the .dlls which were shown as missing in Dependency Walker into the program folder and there is no error, but the apps just won't run.
Simply put, this is way too error prone. Don't try to do it manually, use proper deployment to install your software. That is why there are tools like
win
/linuxdeployqt
. Please also read Deploying Qt Applications.As for you (apparently) changing to use Qt4, don't. Qt5 is already old, we are on Qt6, Qt4 is a long time ago. And may have bugs even if it runs.
-
@xerio78 said in Why is my QT application not working ?:
I copied all the .dlls which were shown as missing in Dependency Walker into the program folder and there is no error, but the apps just won't run.
Simply put, this is way too error prone. Don't try to do it manually, use proper deployment to install your software. That is why there are tools like
win
/linuxdeployqt
. Please also read Deploying Qt Applications.As for you (apparently) changing to use Qt4, don't. Qt5 is already old, we are on Qt6, Qt4 is a long time ago. And may have bugs even if it runs.
@JonB said in Why is my QT application not working ?:
And may have bugs even if it runs.
Bet it has less bugs than Qt6
In general this kind of attitude "it's old" is really annoying.
Software doesn't rust or decay or physically wear out. There's NO REASON to run on this endless update this, then update that then update this again because updating that broke this treadmill doing USELESS BUSYWORK.
People actually have more meaningful things to do than waste days in useless update cycles.
Developers should really LEARN TO DO BETTER.
-
@JonB said in Why is my QT application not working ?:
And may have bugs even if it runs.
Bet it has less bugs than Qt6
In general this kind of attitude "it's old" is really annoying.
Software doesn't rust or decay or physically wear out. There's NO REASON to run on this endless update this, then update that then update this again because updating that broke this treadmill doing USELESS BUSYWORK.
People actually have more meaningful things to do than waste days in useless update cycles.
Developers should really LEARN TO DO BETTER.
@SamiV123
Qt 4.8.4 was released in 2012. The compiler was apparently 2008. That order of time ago is significant. It is not just a matter of "endless updates".Also the OP says the app was developed for Qt5 but he used Qt4 to get it working on some other machine. I merely said there might be issues not initially apparent.
-
"Qt 4.8.4 was released in 2012. The compiler was apparently 2008. That order of time ago is significant."
Ok, did it break? Got rusty and turned into dust? :)
@SamiV123 said in Why is my QT application not working ?:
"Qt 4.8.4 was released in 2012. The compiler was apparently 2008. That order of time ago is significant."
Ok, did it break? Got rusty and turned into dust? :)
You’re turning this into a Reddit-level back-and-forth :)
Qt4 is a decade past its time — unless you’re stuck with legacy requirements, you should be using Qt5 or Qt6.