redirecting console output from QTest to a widget or QString
-
Hi,
i'd like to redirect the generated console text by QTest to somehwere else. Any hints or ideas?
@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.
-
@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.
-
@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.
-
-
Hi,
i'd like to redirect the generated console text by QTest to somehwere else. Any hints or ideas?
@ck_ee
i don't think using a custom message-handler works, but worth a try.