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
Forum Update on Monday, May 27th 2025

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 15 Apr 2016, 18:21 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 15 Apr 2016, 21:36 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 22 Apr 2016, 07:30
      1
      • S SGaist
        15 Apr 2016, 21:36

        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 22 Apr 2016, 07:30 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
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 22 Apr 2016, 12:24 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 25 Apr 2016, 09:43
          1
          • S SGaist
            22 Apr 2016, 12:24

            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 25 Apr 2016, 09:43 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
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 25 Apr 2016, 20:21 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 2 May 2016, 17:00
              1
              • S SGaist
                25 Apr 2016, 20:21

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

                P Offline
                P Offline
                privet
                wrote on 2 May 2016, 17:00 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

                1/7

                15 Apr 2016, 18:21

                • Login

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