Qt Forum

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

    Qt Academy Launch in California!

    Solved Insert Qt Charts in QTextEdit

    General and Desktop
    qchart qtextedit input
    3
    6
    1716
    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.
    • H
      HenrikSt. last edited by

      Hello all!

      Is it possible to Show a qchart in qtextedit?

      Thank you,
      Henrik

      ? 1 Reply Last reply Reply Quote 0
      • ?
        A Former User @HenrikSt. last edited by

        @HenrikSt. Hi! No, it onyl supports a subset of HTML, including tables and images.

        1 Reply Last reply Reply Quote 0
        • H
          HenrikSt. last edited by

          @Wieland
          HI, thank you.

          Topic is solved!

          ? 1 Reply Last reply Reply Quote 0
          • ?
            A Former User @HenrikSt. last edited by

            @HenrikSt. How did you solve it?

            H 1 Reply Last reply Reply Quote 0
            • H
              HenrikSt. @Guest last edited by

              @Wieland
              I solved with the Statement, that it is not possible :)

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

                Hi,

                It might be not possible to insert a QChart object directly but a possible alternative might be to generate your chart, render it on a QImage and then put that QImage your QTextDocument.

                Hope it helps

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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