Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    QProcess documentation is inconsistent

    Qt.io webservices
    documentation qprocess qtwebsite-648
    4
    11
    2761
    Loading More Posts
    • 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.
    • K
      koahnig last edited by koahnig

      The documentation of QProcess is insonsistent. I was searching for setting the environment in the method list at top and could not find anything. With Chrome search I could find a reference on page later. However, it is not marked as a proper reference.

      systemEnvironment can be found under static methods. There is a reference to setEnvironment, but it links to an obsolete page

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply Reply Quote 0
      • Chris Kawa
        Chris Kawa Moderators last edited by

        The docs are ok. setEnvironment is obsolete so it's not listed in the main doc page. The recommended method now is setProcessEnvironment and it is listed at the top as usual.

        K 1 Reply Last reply Reply Quote 0
        • K
          koahnig @Chris Kawa last edited by

          @Chris-Kawa
          Sorry to disagree
          Certain processes need special environment settings in order to operate. You can set environment variables for your process by calling setEnvironment(). To set a working directory, call setWorkingDirectory(). By default, processes are run in the current working directory of the calling process.
          That is one section which still looks like that setEnvironment can be called (see on QProcess doc in section Communicating via channels 4th paragraph). Also later it is not clear. Only when using the link as mentioned in my initial post, you can see only indirectly through the page link shown by your browser. In the text itself it seems to be the original text. You need to scroll up to actually read that all those methods are obsolete.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply Reply Quote 1
          • Chris Kawa
            Chris Kawa Moderators last edited by

            Ah, sorry. Yes, now I see it. Documentation bugs are reported just as any other via bug tracker.

            1 Reply Last reply Reply Quote 0
            • K
              koahnig last edited by

              Filed a bug report on JIRA

              Vote the answer(s) that helped you to solve your issue(s)

              1 Reply Last reply Reply Quote 1
              • Chris Kawa
                Chris Kawa Moderators last edited by

                I see you filed it as a website bug. Documentation is part of the library and should be filed against the Qt library version you spotted it in, not the website, I think.

                1 Reply Last reply Reply Quote 1
                • SGaist
                  SGaist Lifetime Qt Champion last edited by

                  Hi,

                  IIRC, the bug can be moved over by the admins so no need to duplicate it.

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

                  1 Reply Last reply Reply Quote 1
                  • tekojo
                    tekojo last edited by

                    Moved to the "Qt" project and documentation in Bugtracker.
                    https://bugreports.qt.io/browse/QTBUG-45235

                    And thanks @SGaist for providing the patch, should I give the bug over to you actually?

                    1 Reply Last reply Reply Quote 0
                    • SGaist
                      SGaist Lifetime Qt Champion last edited by

                      @tekojo You're welcome ! And yes :)

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

                      1 Reply Last reply Reply Quote 0
                      • K
                        koahnig last edited by

                        Thanks guys for taking care

                        Where to file a bug report is not obvious when you are not on it on an everydays basis.

                        BTW I saw a couple of bug reports on my list which are no longer relevant with the move of the website. Those bugs are :
                        https://bugreports.qt.io/browse/QTWEBSITE-337
                        https://bugreports.qt.io/browse/QTWEBSITE-447
                        https://bugreports.qt.io/browse/QTWEBSITE-452
                        https://bugreports.qt.io/browse/QTWEBSITE-455
                        https://bugreports.qt.io/browse/QTWEBSITE-477

                        Since I am not able to close them, I left a message/comment for each report there as well.

                        Vote the answer(s) that helped you to solve your issue(s)

                        tekojo 1 Reply Last reply Reply Quote 1
                        • tekojo
                          tekojo @koahnig last edited by

                          @koahnig thanks, closed those as requested.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post