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. Is it feasable to copy a Qt class into my project and build it in there

Is it feasable to copy a Qt class into my project and build it in there

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.9k 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.
  • Y Offline
    Y Offline
    yanbellavance
    wrote on last edited by
    #1

    I need to use the QColorDialog in my project but there are certain features I need that are not present. I was asked to modify the source of it and rebuild it as part of the project. Is this something that can be done, easily. The alternative would be to copy it into the Qt source instead, rename it and modify it to my needs then rebuild Qt but I would like to avoid that if possible.

    The reason for this is I need to represent colors based on 12 bits per channel instead of the standard 8bits.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Scylla
      wrote on last edited by
      #2

      I think it's open source. So you can use/modify der sources. You just have to use the open source license, for your project , too.

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        yanbellavance
        wrote on last edited by
        #3

        This would require rebuilding the qt libraries and I would have to rebuild them every time I make a change during the debugging stage.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Scylla
          wrote on last edited by
          #4

          Or you extract the needed functions and add it to your project!

          1 Reply Last reply
          0
          • Y Offline
            Y Offline
            yanbellavance
            wrote on last edited by
            #5

            Too many dependencies to do this.

            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