#tde-devs < 2024/05/28 > |
[00:42] | akh: Is there a way to attach a TQ_SIGNAL to /dev/null? i.e. handle it with a NOOP and prevent further processing |
[00:43] | akh: Or should I just write a stub method |
[00:43] | akh: s/method/slot/ |
[00:47] | micheleC: not really clear on what you are trying to do |
[00:48] | micheleC: a TQ_SIGNAL is basically a way to call a function that has been connected to it |
[00:48] | micheleC: you can't connect that to a device |
[00:54] | akh: I've got some code that's launching a background process and reading its STDOUT with the receivedStdout TQ_SIGNAL |
[00:55] | akh: I want STDERR to be ignored (currently its being displayed, not by my program) |
[00:55] | akh: basically I want receivedStderr to be a NOOP handler (i.e. not doing anything, not displaying anything) |
[00:56] | akh: just accept the TQ_SIGNAL and ignore it |
[00:57] | akh: I don't know if there's a way in QT to do express that or if I need to write a stub SLOT handler |
[00:58] | micheleC: as far as I remember, you can connect stdOut and stdErr to two different method. You can either do nothing in the connected method for stdErr or disconnect that signal |
[00:59] | micheleC: it may be worth rading this doc from tqt3 |
[00:59] | micheleC: file:///usr/share/tqt3/doc/html/signalsandslots.html |
[00:59] | micheleC: you should have a similar file in your filesystem |
[01:00] | akh: I'll give it a read |
[01:01] | akh: I'm porting some code I wrote ages ago to the latest TDE version |
[01:05] | akh: Using a stub SLOT worked |
[01:07] | micheleC: ok |
[01:24] | micheleC has quit (Quit: Kopete 0.12.7 : http://trinitydesktop.org) |
[01:27] | micheleC has joined |
[02:44] | micheleC has quit (Quit: Kopete 0.12.7 : http://trinitydesktop.org) |
[03:37] | akh: Anyone know how to printf("%s", TQString) with UTF8? All the methods I've seen return either objects or ASCII buffer pointers. I'm looking for something that will return a const char * containing UTF8 |
[06:43] | SlavekB: printf("%s", TQString.local8Bit().data()); |
[08:36] | akh: thnx |
[09:07] | SlavekB has quit (Quit: Kopete 0.12.7 : http://trinitydesktop.org) |
[09:58] | SlavekB has joined |
[13:48] | micheleC has joined |
[14:48] | akh: With kdDebug one can specify a numeric area. e.g. 0=generic (the default), 125=tdecore (TDEAccel) |
[14:48] | akh: where are these mappings defined? |
[14:50] | akh: nevermind, it's in /etc/trinity/kdebug.areas |
[14:54] | micheleC: you need to build your packages in Debug mode to see the output of kdDebug |
[14:54] | micheleC: if you build in Release or RelWithDebInfo you won't see anything |
[14:55] | micheleC: you tdedebugdialog for a quick GUI to see and search the area you like |
[14:55] | akh: i wanted to add some additional areas (numbers) |
[14:55] | micheleC: (y) |
[14:55] | akh: all good now |
[14:56] | micheleC has quit (Quit: Kopete 0.12.7 : http://trinitydesktop.org) |
[17:59] | SlavekB has quit (Quit: TDE Kopete : https://trinitydesktop.org) |
[23:00] | SlavekB has joined |
#tde-devs < 2024/05/28 > |