Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Rebuilding Qt class from sources
Forum Updated to NodeBB v4.3 + New Features

Rebuilding Qt class from sources

Scheduled Pinned Locked Moved Solved Installation and Deployment
6 Posts 2 Posters 1.1k Views
  • 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.
  • E Offline
    E Offline
    Eligijus
    wrote on 27 Apr 2017, 06:10 last edited by
    #1

    Hello,
    I want to modify one class let's say QScroller and build it but building the whole Qt from sources takes a long time Is there a way to build a specific module or something like that?

    J 1 Reply Last reply 27 Apr 2017, 07:46
    0
    • E Eligijus
      27 Apr 2017, 06:10

      Hello,
      I want to modify one class let's say QScroller and build it but building the whole Qt from sources takes a long time Is there a way to build a specific module or something like that?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 27 Apr 2017, 07:46 last edited by
      #2

      @Eligijus Yes, just build the module where that class is.

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

      1 Reply Last reply
      0
      • E Offline
        E Offline
        Eligijus
        wrote on 27 Apr 2017, 07:59 last edited by
        #3

        @jsulm So if QScroller files are located in ./qtbase/src/widgets/util
        I need to build qtbase module?
        Or can I build /qtbase/src/widgets if that's the case could you provide an example how to do that?

        J 1 Reply Last reply 27 Apr 2017, 08:03
        0
        • E Eligijus
          27 Apr 2017, 07:59

          @jsulm So if QScroller files are located in ./qtbase/src/widgets/util
          I need to build qtbase module?
          Or can I build /qtbase/src/widgets if that's the case could you provide an example how to do that?

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 27 Apr 2017, 08:03 last edited by
          #4

          @Eligijus you need to build widgets module.
          To build: use qmake from the Qt you're building for and widgets.pro file. Then just make && make install.

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

          1 Reply Last reply
          1
          • E Offline
            E Offline
            Eligijus
            wrote on 27 Apr 2017, 10:58 last edited by
            #5

            Building module worked. I located lowest level of makefile hierachy in my shadow build directory (/home/user/Qt/5.8/t_build/qtbase/src/widgets) and just ran make && make install no need to run qmake.

            J 1 Reply Last reply 27 Apr 2017, 11:05
            0
            • E Eligijus
              27 Apr 2017, 10:58

              Building module worked. I located lowest level of makefile hierachy in my shadow build directory (/home/user/Qt/5.8/t_build/qtbase/src/widgets) and just ran make && make install no need to run qmake.

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 27 Apr 2017, 11:05 last edited by
              #6

              @Eligijus If you already executed qmake before in the same source code tree then, yes, no need to execute it again.

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

              1 Reply Last reply
              0

              1/6

              27 Apr 2017, 06:10

              • Login

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