Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved TextBox in Output pane of Qt creator

    General and Desktop
    4
    12
    1593
    Loading More Posts
    • 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
      Veepee last edited by

      I have a plugin which prints the output data read from a perl script in the General messages output pane. I want to make each statement from the output data clickable to parse the clicked output and open the file if valid.

      To achieve this, I am trying to redirect each line to a textview/QLabel in Qt , to handle click events of it. Is it possible to create a label in output pane to display the texts in it from the plugin ?

      JonB 1 Reply Last reply Reply Quote 0
      • JonB
        JonB @Veepee last edited by

        @Veepee
        I am a not a Qt expert. I don't know whether it's possible to do this in Qt Creator's Output window. But what sort of order of number of lines are you expecting? Because 1,000 lines => 1,000 separate QLabel widgets sounds non-scalable to me...

        V 1 Reply Last reply Reply Quote 0
        • V
          Veepee @JonB last edited by

          @JonB Yes, true. Definitely this doesnt look to be a good option to me either :| , but couldn't identify any other feasible solution yet.

          1 Reply Last reply Reply Quote 0
          • mrjj
            mrjj Lifetime Qt Champion last edited by

            Hi
            You mean something like what Todo plugin does ?
            http://katecpp.github.io/qtcreator-todo/

            V 1 Reply Last reply Reply Quote 1
            • V
              Veepee @mrjj last edited by

              @mrjj Exactly. Thanks a lot for this.
              But this looks to identify the comments section from current document. The difference is I want to filter the warning/error output from General messages pane .

              mrjj 1 Reply Last reply Reply Quote 0
              • mrjj
                mrjj Lifetime Qt Champion @Veepee last edited by

                @Veepee

                well i was thinking you altered the the todo sample and simple output
                to that pane instead (from perl plugin) ?

                V 1 Reply Last reply Reply Quote 0
                • aha_1980
                  aha_1980 Lifetime Qt Champion last edited by

                  @Veepee

                  What happened to your other thread? https://forum.qt.io/topic/86282/get-click-events-from-output-pane-of-qt-creator/5

                  As said there, the General Messages pane is currently missing that function, but it is there in Compile output e.g.

                  Qt has to stay free or it will die.

                  1 Reply Last reply Reply Quote 0
                  • V
                    Veepee last edited by

                    @aha_1980 I am open to redirect my output to Compile output window as well if this supports the link functionality.. But I see Core::MessageManager::write only redirects to General messages output pane. Do we have any similar interface to write to Compile output window ?

                    1 Reply Last reply Reply Quote 0
                    • V
                      Veepee @mrjj last edited by

                      @mrjj No, I have not altered any. Its a plugin that reads the data from perl and dumps to output pane using MessageManager::write

                      mrjj 1 Reply Last reply Reply Quote 0
                      • mrjj
                        mrjj Lifetime Qt Champion @Veepee last edited by

                        @Veepee

                        ok. but if you already have a Creator plugin why not make your own pane ( like todo)
                        and just output there ?

                        V 1 Reply Last reply Reply Quote 0
                        • V
                          Veepee @mrjj last edited by

                          @mrjj That would be great. But is it that simple ? Do we have any direct interfaces available for this ? Currently am referring ToDo plugin to understand how this is done.

                          mrjj 1 Reply Last reply Reply Quote 0
                          • mrjj
                            mrjj Lifetime Qt Champion @Veepee last edited by

                            @Veepee

                            Hi, to be frank, i would just reuse the toDo pane as
                            its all the same and only difference is what widgets are used.
                            As i remember it, it was not terrible complex when you had sample to reuse. :)

                            1 Reply Last reply Reply Quote 1
                            • First post
                              Last post