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. redirecting console output from QTest to a widget or QString
QtWS25 Last Chance

redirecting console output from QTest to a widget or QString

Scheduled Pinned Locked Moved Unsolved General and Desktop
qteststdcout
7 Posts 3 Posters 3.8k 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.
  • C Offline
    C Offline
    ck_ee
    wrote on 22 Jul 2016, 11:51 last edited by
    #1

    Hi,

    i'd like to redirect the generated console text by QTest to somehwere else. Any hints or ideas?

    J R 2 Replies Last reply 22 Jul 2016, 12:37
    0
    • C ck_ee
      22 Jul 2016, 11:51

      Hi,

      i'd like to redirect the generated console text by QTest to somehwere else. Any hints or ideas?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 22 Jul 2016, 12:37 last edited by
      #2

      @ck_ee I don't understand the question. Do you want to write your own app where you use QTest and then show its output inside your app? If so you can start the tests in another process using QProcess and read its standard output (and standard error output) and insert the text in a text widget.

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

      C 1 Reply Last reply 22 Jul 2016, 12:59
      0
      • J jsulm
        22 Jul 2016, 12:37

        @ck_ee I don't understand the question. Do you want to write your own app where you use QTest and then show its output inside your app? If so you can start the tests in another process using QProcess and read its standard output (and standard error output) and insert the text in a text widget.

        C Offline
        C Offline
        ck_ee
        wrote on 22 Jul 2016, 12:59 last edited by
        #3

        @jsulm i want one app where the QTest is executed and its console output should be printed in a widget. Starting another process just seems too complicated.

        J 1 Reply Last reply 25 Jul 2016, 04:31
        0
        • C ck_ee
          22 Jul 2016, 12:59

          @jsulm i want one app where the QTest is executed and its console output should be printed in a widget. Starting another process just seems too complicated.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 25 Jul 2016, 04:31 last edited by
          #4

          @ck_ee See here http://blog.debao.me/2013/07/redirect-current-processs-stdout-to-a-widget-such-as-qtextedit/

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

          C 1 Reply Last reply 28 Jul 2016, 09:00
          0
          • J jsulm
            25 Jul 2016, 04:31

            @ck_ee See here http://blog.debao.me/2013/07/redirect-current-processs-stdout-to-a-widget-such-as-qtextedit/

            C Offline
            C Offline
            ck_ee
            wrote on 28 Jul 2016, 09:00 last edited by
            #5

            @jsulm i'm looking for a plattform independent solution..

            J 1 Reply Last reply 28 Jul 2016, 09:01
            0
            • C ck_ee
              28 Jul 2016, 09:00

              @jsulm i'm looking for a plattform independent solution..

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 28 Jul 2016, 09:01 last edited by
              #6

              @ck_ee I'm not aware off any plattform independent solutions for this

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

              1 Reply Last reply
              0
              • C ck_ee
                22 Jul 2016, 11:51

                Hi,

                i'd like to redirect the generated console text by QTest to somehwere else. Any hints or ideas?

                R Offline
                R Offline
                raven-worx
                Moderators
                wrote on 28 Jul 2016, 13:06 last edited by raven-worx
                #7

                @ck_ee
                i don't think using a custom message-handler works, but worth a try.

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

                1 Reply Last reply
                0

                5/7

                28 Jul 2016, 09:00

                • Login

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