Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. PySIde6 QProcess & SeparateChannels not working properly

PySIde6 QProcess & SeparateChannels not working properly

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 423 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.
  • D Offline
    D Offline
    Dariusz
    wrote on last edited by Dariusz
    #1

    Hey

    I'm on win10x64, pyside 6.2.0 this code>

            self.mBuildProcess = QProcess()
            self.mBuildProcess.setProcessChannelMode(QProcess.SeparateChannels)
            self.mBuildProcess.readyReadStandardError.connect(self.handleProcessStandardError)
            self.mBuildProcess.readyReadStandardOutput.connect(self.handleProcessStandardOutput)
    

    Partially works,
    The Output will be correct :

        def handleProcessStandardOutput(self):
        data = self.handleProcessReadData(self.mBuildProcess.readAllStandardOutput())
    

    But error >

        def handleProcessStandardError(self):
         er = self.handleProcessReadData(self.mBuildProcess.readAllStandardError())
    

    Is the same as output message, its as I'm somehow reading output as error.
    I'm trying to run BAT, which in turns run... compile scripts.
    Any ideas/hints?
    TIA

    jsulmJ 1 Reply Last reply
    0
    • D Dariusz

      Hey

      I'm on win10x64, pyside 6.2.0 this code>

              self.mBuildProcess = QProcess()
              self.mBuildProcess.setProcessChannelMode(QProcess.SeparateChannels)
              self.mBuildProcess.readyReadStandardError.connect(self.handleProcessStandardError)
              self.mBuildProcess.readyReadStandardOutput.connect(self.handleProcessStandardOutput)
      

      Partially works,
      The Output will be correct :

          def handleProcessStandardOutput(self):
          data = self.handleProcessReadData(self.mBuildProcess.readAllStandardOutput())
      

      But error >

          def handleProcessStandardError(self):
           er = self.handleProcessReadData(self.mBuildProcess.readAllStandardError())
      

      Is the same as output message, its as I'm somehow reading output as error.
      I'm trying to run BAT, which in turns run... compile scripts.
      Any ideas/hints?
      TIA

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Dariusz said in PySIde6 QProcess & SeparateChannels not working properly:

      self.handleProcessReadData

      What is this doing?
      If you directly print out what self.mBuildProcess.readAllStandardError() returns inside handleProcessStandardError - what do you see?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      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