Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Applying Qt patch

Applying Qt patch

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
8 Posts 2 Posters 7.7k Views 1 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.
  • S Offline
    S Offline
    samdol
    wrote on last edited by
    #1

    Hello, I got a patch file for Qt in diff format. How can I apply this patch on Qt? I am using Qt installed from windows binary. Do I have to compile Qt-everywhere?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Yes, you have to compile Qt yourself.

      You can grab the source for the version you installed directly with the installer.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        Yes, you have to compile Qt yourself.

        You can grab the source for the version you installed directly with the installer.

        S Offline
        S Offline
        samdol
        wrote on last edited by
        #3

        @SGaist
        Thanks,
        Do I have to apply diff before compiling Qt or after compiling Qt?
        And How can I apply it?
        I googled and it says run diff on Qt creator, but diff is not active state on my Qt creator.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Patches modify source code, you have to apply it before building.

          Do you have git installed on your system ? If not you can get WinMerge or KDiff3

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          S 1 Reply Last reply
          2
          • SGaistS SGaist

            Patches modify source code, you have to apply it before building.

            Do you have git installed on your system ? If not you can get WinMerge or KDiff3

            S Offline
            S Offline
            samdol
            wrote on last edited by
            #5

            @SGaist
            Yes, I have installed git on windows.
            Do you mean that whenever there is a small patch on few source files, I have to
            compile whole qt-everywhere-opensource-src? That sounds quite time consuming job. Can I compile only patch files and replace it?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Depends on the files affected by the patch. If it's only a sub-module then you can only build the submodule.

              What is that patch ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              S 1 Reply Last reply
              0
              • SGaistS SGaist

                Depends on the files affected by the patch. If it's only a sub-module then you can only build the submodule.

                What is that patch ?

                S Offline
                S Offline
                samdol
                wrote on last edited by
                #7

                @SGaist
                The file patched is
                src/gui/kernel/qguiapplication.cpp
                Can I execute the same command which I used for build whole Qt on parent directory of src or May I move to kernel directory and execute something else?

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Then you only need to build qtbase.

                  No you can't just move things around.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0

                  • Login

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