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
QtWS25 Last Chance

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 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 ?

    aha_1980A 1 Reply Last reply
    0
    • V Veepee

      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 ?

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 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 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.

        aha_1980A 1 Reply Last reply
        0
        • V Veepee

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

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 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
          • hungerH Offline
            hungerH Offline
            hunger
            wrote on 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

            • Login

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