Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Announcements
  4. qDesktopSearch on github
QtWS25 Last Chance

qDesktopSearch on github

Scheduled Pinned Locked Moved Unsolved Announcements
qdesktopsearchgithubclucenejvm
7 Posts 2 Posters 2.4k 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.
  • P Offline
    P Offline
    privet
    wrote on last edited by
    #1

    Started qDesktopSearch, an app using the JVM and CLucene to index & search the files of the local machine:
    https://github.com/privet56/qDesktopSearch
    I would love to get help & improvement hints!

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

      Hi,

      One thing you can do to make thing cleaner is to create a .pri file per dependencies you have and include them in your main .pro file. That way you keep thing clearly separated and you avoid having 200 files listed there.

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

      P 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        One thing you can do to make thing cleaner is to create a .pri file per dependencies you have and include them in your main .pro file. That way you keep thing clearly separated and you avoid having 200 files listed there.

        P Offline
        P Offline
        privet
        wrote on last edited by
        #3

        @SGaist Cool idea! Thanks!
        I did it this way:
        https://github.com/privet56/qDesktopSearch/blob/master/qDesktopSearch_3rdparty.pri

        with the result, that

        1. the .pro file is much more clear
          AND
        2. the folder structure within Qt Creator is more clear
        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          In the absolute, I would have split also the content per 3rd party.

          so that qDesktopSearch_3rdparty.pri would look like:

          include(zlib/zlib.pri)
          include(boost/boost.pri)
          etc.
          

          That way each 3rd party is responsible for providing its own informations.

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

          P 1 Reply Last reply
          1
          • SGaistS SGaist

            In the absolute, I would have split also the content per 3rd party.

            so that qDesktopSearch_3rdparty.pri would look like:

            include(zlib/zlib.pri)
            include(boost/boost.pri)
            etc.
            

            That way each 3rd party is responsible for providing its own informations.

            P Offline
            P Offline
            privet
            wrote on last edited by
            #5

            @SGaist
            Yeah, I see your point... now I implemented this way:

            include(qDesktopSearch_3rdparty_clucene.pri)
            include(qDesktopSearch_3rdparty_qt-solutions.pri)

            because:

            1. the referenced zlib & boost are part of the CLucene distri, that's why I put them in one pri (see https://sourceforge.net/p/clucene/code/ci/e8e3d20f20da5ee3e37d347207b01890829a5475/tree/src/ext/ )

            2. now I also need QtSingleApplication, and I put the lib for that in an extra pri

            Thanks for the hint!

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

              Doesn't QtSingleApplication come with it's own .pri ?

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

              P 1 Reply Last reply
              1
              • SGaistS SGaist

                Doesn't QtSingleApplication come with it's own .pri ?

                P Offline
                P Offline
                privet
                wrote on last edited by
                #7

                @SGaist Very good remark!
                Yes, you're right: there is a pri to be included;
                however, I decided for the moment to include the necessary files explicitly
                without the 'magic' of 'qtsingleapplication.pri'
                (I'm still playing around with the best settings...)

                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