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

Rebuilding Qt class from sources

Scheduled Pinned Locked Moved Solved Installation and Deployment
6 Posts 2 Posters 1.3k 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 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?

    jsulmJ 1 Reply Last reply
    0
    • E Eligijus

      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?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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 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?

        jsulmJ 1 Reply Last reply
        0
        • E Eligijus

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

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on 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 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.

            jsulmJ 1 Reply Last reply
            0
            • E Eligijus

              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.

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on 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

              • Login

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