|
From: Tatsuro M. <tma...@ya...> - 2015-08-19 05:24:17
|
----- Original Message ----- > From: sfeam > To: gnuplot-beta; Tatsuro MATSUOKA > Cc: > Date: 2015/8/19, Wed 13:54 > Subject: Re: qt terminal for windows : qDebug() problems > > On Wednesday, 19 August 2015 12:46:49 PM Tatsuro MATSUOKA wrote: >> 1)************************************************ >> >1) The messages from qt_term.cpp can be written using fprintf(stderr, > ...). >> >This would be consistent with error messages throughout the main > program. >> >I will make this change. >> >> >> I appreciate that you will make the change. >> All messages from qt_term.cpp will be represented not only gnuplot.exe but >> also wgnuplot.exe and wgnuplot_pipes.exe. > > This change is now in CVS. > >> 2)************************************************* >> >2) Messages from the separate process gnuplot_qt should not try >> >to write directly to stderr, since this may not go anywhere useful. >> >qDebug() is supposed to handle this, but I can't help with how to >> >configure on Windows. >> >> >> >> >qDebug() is supposed to handle this, but I can't help with how to >> >configure on Windows. >> >> According information searched on the web, qDebug() on windows can be >> output messages to the console if the application is console one >> otherwise message to send to the debugger if it is present. >> >> gnuplot_qt.exe does not have own console. >> This might be the origin represent nothing >> even if gnuplot_qt.exe executed from gnuplot.exe. >> >> For gnuplot for windows, two alternative way can be considered >> 1) make original message system with qt tools within gnuplot_qt.exe. > > Maybe for Windows you could replace qDebug() with a popup message box? > > http://doc.qt.io/qt-5/qmessagebox.html > Thanks! I will consider modification using the above. >> 2) transfer messages to the main process and represented in the main > process. > > That could not work if the message being sent is that > the connection to the main process has broken :-) > Ah! I can only do the case 1) Tatsuro |