11-07-2012 01:34 PM
Hi everybody!
I've switched to QT Creator for faster compilation & deployment.
Everything works fine including debugging but it doesn't display logs (qDebug etc).
I know that logs should be redirected to stdout/stderr if they are to be displayed in QNX Momentics console.
This is done using qInstallMsgHandler and it works. But it doesn't work in QT Creator.
So the question is:
How does QNX Momentics intercept the logs after they are redirected to stderr/stdout?
I was able to view the logs via SSH using the following method. It works for slogger2, but I don't know how to access stdout/stderr output:
1) Start blackberry-connect
/Applications/bbndk/host_10_0_9_52/darwin/x86/usr/
2) ssh devuser@192.168.157.128 -i "/Users/User/.config/QtProject/qtcreator/qnx/Black
3) slog2info -w | grep qt-msg
Any suggestions are welcome!
Solved! Go to Solution.
11-08-2012 08:45 AM
I would rather use QtCreator as well. The Eclipse IDE was never something I liked.
Which version of Qt Creator did you use? Any special setup steps?
Btw. I have seen that it was recommended to use simple sprintf... instead of qDebug() to log your stuff since it wasn't working. So I think what you've seen is just a macro that will use standard console output functions.
11-08-2012 11:20 AM
Does QtCreator support Cascades development?
Can it support Qt5?
I really want to move from eclipse to some tools most developers can trust...
11-08-2012 12:08 PM
I doubt thay you can use Qt5 with it, but I would be happy with Qt4 just as long as I could use QtCreator properly.
11-10-2012 09:13 AM - edited 11-10-2012 09:14 AM
It does support Cascades.
I've followed this guide:
http://qt-project.org/wiki/Qt-Creator-with-BlackBe
Autocompletion did not work initially. I don't know why, maybe paths were too long?
As a workaround I've created a symlink in my project folder:
include -> /Applications/bbndk/target_10_0_9_386/qnx6/usr/inc
Then added the following lines to .pro file:
INCLUDEPATH += include include/qt4/QtCore LIBS += -lbbcascades
By the way, logs started working after reboot. ![]()
Everything is working now.
p.s. I'm using Mac OS X Lion.