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. How to add fileutils plugin to Qt project
Forum Update on Monday, May 27th 2025

How to add fileutils plugin to Qt project

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 4 Posters 851 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.
  • B Offline
    B Offline
    BadPistol97
    wrote on 25 May 2019, 16:32 last edited by
    #1

    So I want to use the function, *void FileUtils::showInGraphicalShell (QWidget parent, const QString &pathIn) to show files in an explorer.

    I get the information from here: https://stackoverflow.com/questions/3490336/how-to-reveal-in-finder-or-show-in-explorer-with-qt

    When I go to the link: https://github.com/qt-creator/qt-creator/blob/master/src/plugins/coreplugin/fileutils.cpp#L67
    it shows a cpp file.

    And https://github.com/danimo/qt-creator/tree/master/src/libs/utils shows more cpp and header files.

    Do I need to build a dll to add fileutils in a Qt Project? But I can't find a makefile on the github. Thanks in advance.

    R 1 Reply Last reply 25 May 2019, 19:06
    0
    • B BadPistol97
      25 May 2019, 16:32

      So I want to use the function, *void FileUtils::showInGraphicalShell (QWidget parent, const QString &pathIn) to show files in an explorer.

      I get the information from here: https://stackoverflow.com/questions/3490336/how-to-reveal-in-finder-or-show-in-explorer-with-qt

      When I go to the link: https://github.com/qt-creator/qt-creator/blob/master/src/plugins/coreplugin/fileutils.cpp#L67
      it shows a cpp file.

      And https://github.com/danimo/qt-creator/tree/master/src/libs/utils shows more cpp and header files.

      Do I need to build a dll to add fileutils in a Qt Project? But I can't find a makefile on the github. Thanks in advance.

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 25 May 2019, 19:06 last edited by
      #2

      @BadPistol97 said in How to add fileutils plugin to Qt project:

      Do I need to build a dll to add fileutils in a Qt Project? But I can't find a makefile on the github.

      there is a utils.pro file. run qmake on it and you have your makefile.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      B 1 Reply Last reply 26 May 2019, 03:17
      0
      • R raven-worx
        25 May 2019, 19:06

        @BadPistol97 said in How to add fileutils plugin to Qt project:

        Do I need to build a dll to add fileutils in a Qt Project? But I can't find a makefile on the github.

        there is a utils.pro file. run qmake on it and you have your makefile.

        B Offline
        B Offline
        BadPistol97
        wrote on 26 May 2019, 03:17 last edited by
        #3

        Hi @raven-worx

        I am using Qt MinGW530_32 compiler and have set the path:
        0_1558840323974_Capture.PNG

        But when I try qmake utils.pro:
        0_1558840465043_Capture.PNG

        Not quite sure why did the error happened.

        K A 2 Replies Last reply 26 May 2019, 03:29
        0
        • B BadPistol97
          26 May 2019, 03:17

          Hi @raven-worx

          I am using Qt MinGW530_32 compiler and have set the path:
          0_1558840323974_Capture.PNG

          But when I try qmake utils.pro:
          0_1558840465043_Capture.PNG

          Not quite sure why did the error happened.

          K Offline
          K Offline
          KillerSmath
          wrote on 26 May 2019, 03:29 last edited by KillerSmath
          #4

          @BadPistol97

          Is Anaconda not for python ?
          Have you inserted the Qt's Path in your system environment path ?

          @Computer Science Student - Brazil
          Web Developer and Researcher
          “Sometimes it’s the people no one imagines anything of who do the things that no one can imagine.” - Alan Turing

          1 Reply Last reply
          0
          • B BadPistol97
            26 May 2019, 03:17

            Hi @raven-worx

            I am using Qt MinGW530_32 compiler and have set the path:
            0_1558840323974_Capture.PNG

            But when I try qmake utils.pro:
            0_1558840465043_Capture.PNG

            Not quite sure why did the error happened.

            A Offline
            A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on 26 May 2019, 06:12 last edited by
            #5

            @BadPistol97 you should open utils.pro in QtCreator and compile from there. This will give you a proper environment.

            But please keep in mind, that these source files are GPL licensed. If you use them, your whole program will be GPL affected.

            Regards

            Qt has to stay free or it will die.

            1 Reply Last reply
            0
            • B Offline
              B Offline
              BadPistol97
              wrote on 26 May 2019, 07:01 last edited by BadPistol97
              #6

              @aha_1980 Thanks for reminding me the license.

              Now I notice there are 2 folders containing filetutils.cpp

              • https://github.com/qt-creator/qt-creator/tree/master/src/libs/utils

              • https://github.com/qt-creator/qt-creator/tree/master/src/plugins/coreplugin

              Should I go for /lib or /plugins?

              And I am not sure how to open the .pro file correctly in Qt Creator.

              0_1558854075738_Capture.PNG
              0_1558853919078_Capture.PNG

              A 1 Reply Last reply 26 May 2019, 09:30
              0
              • B BadPistol97
                26 May 2019, 07:01

                @aha_1980 Thanks for reminding me the license.

                Now I notice there are 2 folders containing filetutils.cpp

                • https://github.com/qt-creator/qt-creator/tree/master/src/libs/utils

                • https://github.com/qt-creator/qt-creator/tree/master/src/plugins/coreplugin

                Should I go for /lib or /plugins?

                And I am not sure how to open the .pro file correctly in Qt Creator.

                0_1558854075738_Capture.PNG
                0_1558853919078_Capture.PNG

                A Offline
                A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on 26 May 2019, 09:30 last edited by
                #7

                @BadPistol97 if I get it correctly, you need fileutils from coreplugin.

                I'm, however, not convinced that is the best solution to build whole coreplugin for one function. Rather analyze this function, and re-write the essential part yourself. Should not be that hard.

                Qt has to stay free or it will die.

                B 1 Reply Last reply 27 May 2019, 15:59
                0
                • A aha_1980
                  26 May 2019, 09:30

                  @BadPistol97 if I get it correctly, you need fileutils from coreplugin.

                  I'm, however, not convinced that is the best solution to build whole coreplugin for one function. Rather analyze this function, and re-write the essential part yourself. Should not be that hard.

                  B Offline
                  B Offline
                  BadPistol97
                  wrote on 27 May 2019, 15:59 last edited by
                  #8

                  @aha_1980 Alright. Thank you very much, I will try to write a simpler version of it.

                  1 Reply Last reply
                  1

                  1/8

                  25 May 2019, 16:32

                  • Login

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