How to design architecture for qt based windows application?
-
Hi i have to Develop one qt based windows application.
What is the significant difference between linux based app to windows based qt app ?
Can i develop the qt application for windows on linux based qt creator ?
How to develop the architecture for it ?
Till now i have used mvc based architecture but for windows what changes i need to made at architecture , at build system ?
-
Hi i have to Develop one qt based windows application.
What is the significant difference between linux based app to windows based qt app ?
Can i develop the qt application for windows on linux based qt creator ?
How to develop the architecture for it ?
Till now i have used mvc based architecture but for windows what changes i need to made at architecture , at build system ?
@Qt-embedded-developer said in How to design architecture for qt based windows application?:
What is the significant difference between linux based app to windows based qt app ?
Most of the time none. Qt is a cross platform framework.
"Can i develop the qt application for windows on linux based qt creator ?" - in theory yes, but setting up cross compile environment is diffucult. But you can simply develop your app on Linux and build on Windows to get Windows builds of your app.
"How to develop the architecture for it ?" - don't know what you mean. Write your app with Qt and boild it for Linux/Windows/MacOS - that's what cross platform means.
"Till now i have used mvc based architecture but for windows what changes" - why should this change?
-
@Qt-embedded-developer said in How to design architecture for qt based windows application?:
What is the significant difference between linux based app to windows based qt app ?
Most of the time none. Qt is a cross platform framework.
"Can i develop the qt application for windows on linux based qt creator ?" - in theory yes, but setting up cross compile environment is diffucult. But you can simply develop your app on Linux and build on Windows to get Windows builds of your app.
"How to develop the architecture for it ?" - don't know what you mean. Write your app with Qt and boild it for Linux/Windows/MacOS - that's what cross platform means.
"Till now i have used mvc based architecture but for windows what changes" - why should this change?
@jsulm means I want to know which architecture to select for windows based qt application?
Second question is that if I install qt in windows and build one simple application using it. So generated executable will run on any windows os or it need additional package also to run it?
Because my end goal is to run that application onto any windows os . Is it possible? And what is needed for it?
I have seen the below error when run exe app :
Qt6Core.dll and Qt6Widgets.dll not foundHow to resolve it?
-
@jsulm means I want to know which architecture to select for windows based qt application?
Second question is that if I install qt in windows and build one simple application using it. So generated executable will run on any windows os or it need additional package also to run it?
Because my end goal is to run that application onto any windows os . Is it possible? And what is needed for it?
I have seen the below error when run exe app :
Qt6Core.dll and Qt6Widgets.dll not foundHow to resolve it?
@Qt-embedded-developer said in How to design architecture for qt based windows application?:
Because my end goal is to run that application onto any windows os . Is it possible? And what is needed for it?
You have to deploy it:
https://doc.qt.io/qt-6/windows-deployment.html -
-
@jsulm means I want to know which architecture to select for windows based qt application?
Second question is that if I install qt in windows and build one simple application using it. So generated executable will run on any windows os or it need additional package also to run it?
Because my end goal is to run that application onto any windows os . Is it possible? And what is needed for it?
I have seen the below error when run exe app :
Qt6Core.dll and Qt6Widgets.dll not foundHow to resolve it?
@Qt-embedded-developer Hi.
Qt is a crossplatform integrated development Environment.That means you can write the code to your application and deploy that same code on many platforms.Now, if you are using qt for windows, all the application you will develop will work on windows only.Now if you want to target other os like ubuntu or linux or raspbian, you will need to create a toolchain to compile for the target environment.You can check this article for raspberry https://drive.google.com/file/d/1-Dd228_crhvV1VJnNjqLCAl3O6_cWeJ4/view?usp=drive_link
Now concerning your error.When YOU RUN a compiled qtapp outside of qt creator, it will ask you some dlls.These dlls are in the qt installation folder.So you just need to copy them to your app folder.You can also use dependancy walker to check which library your app need to start https://www.dependencywalker.com/
After all the dlls, you should add the folder platform as well.
-
@jsulm means I want to know which architecture to select for windows based qt application?
Second question is that if I install qt in windows and build one simple application using it. So generated executable will run on any windows os or it need additional package also to run it?
Because my end goal is to run that application onto any windows os . Is it possible? And what is needed for it?
I have seen the below error when run exe app :
Qt6Core.dll and Qt6Widgets.dll not foundHow to resolve it?
@Qt-embedded-developer said in How to design architecture for qt based windows application?:
means I want to know which architecture to select for windows based qt application?
I'm really wondering about this question. Why do you think the architecture of your application which is using a cross platform framework will be different on Windows than on Linux? I already wrote that Qt is a cross platform framework. So, so you write your code once (doesn't matter on which platform) and then build it for each platform you want to support (write once build everywhere).
"So generated executable will run on any windows os or it need additional package also to run it?" - this has nothing to do with Qt. C++ is a compiled language, so you need to build your application for each platform where it needs to run.
"Because my end goal is to run that application onto any windows os" - which OS and versions are supported is explained here: https://doc.qt.io/qt-6/supported-platforms.html
"I have seen the below error when run exe app " - you probably did not deploy your app properly, see https://doc.qt.io/qt-6/windows-deployment.html
-
@Qt-embedded-developer Hi.
Qt is a crossplatform integrated development Environment.That means you can write the code to your application and deploy that same code on many platforms.Now, if you are using qt for windows, all the application you will develop will work on windows only.Now if you want to target other os like ubuntu or linux or raspbian, you will need to create a toolchain to compile for the target environment.You can check this article for raspberry https://drive.google.com/file/d/1-Dd228_crhvV1VJnNjqLCAl3O6_cWeJ4/view?usp=drive_link
Now concerning your error.When YOU RUN a compiled qtapp outside of qt creator, it will ask you some dlls.These dlls are in the qt installation folder.So you just need to copy them to your app folder.You can also use dependancy walker to check which library your app need to start https://www.dependencywalker.com/
After all the dlls, you should add the folder platform as well.
@Ronel_qtmaster said in How to design architecture for qt based windows application?:
Qt is a crossplatform integrated development Environment
To be correct, Qt is not an IDE. Qt is a GUI framework written for C++, if you want to give it a "name".
QtCreator is the IDE to work with Qt (of course every other IDE of choice will also work)