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
QtWS25 Last Chance

How to add fileutils plugin to Qt project

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 4 Posters 849 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.
  • BadPistol97B Offline
    BadPistol97B Offline
    BadPistol97
    wrote on 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.

    raven-worxR 1 Reply Last reply
    0
    • BadPistol97B BadPistol97

      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.

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on 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

      BadPistol97B 1 Reply Last reply
      0
      • raven-worxR raven-worx

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

        BadPistol97B Offline
        BadPistol97B Offline
        BadPistol97
        wrote on 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.

        KillerSmathK aha_1980A 2 Replies Last reply
        0
        • BadPistol97B BadPistol97

          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.

          KillerSmathK Offline
          KillerSmathK Offline
          KillerSmath
          wrote on 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
          • BadPistol97B BadPistol97

            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.

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on 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
            • BadPistol97B Offline
              BadPistol97B Offline
              BadPistol97
              wrote on 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

              aha_1980A 1 Reply Last reply
              0
              • BadPistol97B BadPistol97

                @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

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on 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.

                BadPistol97B 1 Reply Last reply
                0
                • aha_1980A aha_1980

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

                  BadPistol97B Offline
                  BadPistol97B Offline
                  BadPistol97
                  wrote on 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

                  • Login

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