Get click events from output pane of Qt creator
-
I have a Qt creator plugin written that invokes a perl script to perform an operation. The perl output lists a set of files where some corrections are to be handled with the filepath and its associated line numbers in the file. The output of perl script is redirected to the General messages pane of Qt creator.
On clicking this info/error line from General messages pane of Qt creator, I would need the respective file to be opened in Qt creator. Is there a possibility to get the click event of this text output ?
-
I have a Qt creator plugin written that invokes a perl script to perform an operation. The perl output lists a set of files where some corrections are to be handled with the filepath and its associated line numbers in the file. The output of perl script is redirected to the General messages pane of Qt creator.
On clicking this info/error line from General messages pane of Qt creator, I would need the respective file to be opened in Qt creator. Is there a possibility to get the click event of this text output ?
-
Yes, looking for details on how compile output handles this. But couldnt get any valid pointers on this. Any suggestions would be appreciated.
@Veepee said in Get click events from output pane of Qt creator:
Yes, looking for details on how compile output handles this. But couldnt get any valid pointers on this. Any suggestions would be appreciated.
Have you looked in
compileoutputwindow.cpp
?The relevant code starts here: http://code.qt.io/cgit/qt-creator/qt-creator.git/tree/src/plugins/projectexplorer/compileoutputwindow.cpp#n111
-
Compile output and application output have (two different) ways to do so, but generic output does not IIRC. So you will most likely be out of luck there. If you want to invest the time, then patches changing that (reusing one of the two existing ways!) would be welcome.
For something like a static analyzer or something similar (basically lots of issues with unimportant information in between), then you could try to convert that into a tasks file (think a simple CSV file), which creator can then load into the issues pane, enabling you to jump through the list with F6/Ctrl-F6 keys.