Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Get click events from output pane of Qt creator
Forum Update on Monday, May 27th 2025

Get click events from output pane of Qt creator

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Veepee
    wrote on 26 Dec 2017, 08:47 last edited by
    #1

    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 ?

    A 1 Reply Last reply 26 Dec 2017, 08:58
    0
    • V Veepee
      26 Dec 2017, 08:47

      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 ?

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 26 Dec 2017, 08:58 last edited by
      #2

      @Veepee you can look how the compile output handles this, as there is a similar technique for opening files.

      Qt has to stay free or it will die.

      1 Reply Last reply
      2
      • V Offline
        V Offline
        Veepee
        wrote on 28 Dec 2017, 08:42 last edited by
        #3

        Yes, looking for details on how compile output handles this. But couldnt get any valid pointers on this. Any suggestions would be appreciated.

        A 1 Reply Last reply 28 Dec 2017, 08:48
        0
        • V Veepee
          28 Dec 2017, 08:42

          Yes, looking for details on how compile output handles this. But couldnt get any valid pointers on this. Any suggestions would be appreciated.

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 28 Dec 2017, 08:48 last edited by
          #4

          @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

          Qt has to stay free or it will die.

          1 Reply Last reply
          0
          • H Offline
            H Offline
            hunger
            wrote on 28 Dec 2017, 09:10 last edited by
            #5

            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.

            1 Reply Last reply
            4

            1/5

            26 Dec 2017, 08:47

            • Login

            • Login or register to search.
            1 out of 5
            • First post
              1/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved