Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to design architecture for qt based windows application?
Forum Updated to NodeBB v4.3 + New Features

How to design architecture for qt based windows application?

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 5 Posters 676 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on last edited by
    #1

    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 ?

    jsulmJ 1 Reply Last reply
    0
    • Q Qt embedded developer

      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 ?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      Q 1 Reply Last reply
      2
      • jsulmJ jsulm

        @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?

        Q Offline
        Q Offline
        Qt embedded developer
        wrote on last edited by Qt embedded developer
        #3

        @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 found

        How to resolve it?

        M Ronel_qtmasterR jsulmJ 3 Replies Last reply
        0
        • Q Qt embedded developer

          @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 found

          How to resolve it?

          M Offline
          M Offline
          mpergand
          wrote on last edited by mpergand
          #4

          @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

          1 Reply Last reply
          2
          • M mpergand referenced this topic on
          • Q Qt embedded developer

            @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 found

            How to resolve it?

            Ronel_qtmasterR Online
            Ronel_qtmasterR Online
            Ronel_qtmaster
            wrote on last edited by
            #5

            @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.

            Pl45m4P 1 Reply Last reply
            0
            • Q Qt embedded developer

              @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 found

              How to resolve it?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @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

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1
              • Ronel_qtmasterR Ronel_qtmaster

                @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.

                Pl45m4P Offline
                Pl45m4P Offline
                Pl45m4
                wrote on last edited by Pl45m4
                #7

                @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)


                If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                ~E. W. Dijkstra

                1 Reply Last reply
                1

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved