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. How can I find QTextTable in QTextDocument?
Forum Updated to NodeBB v4.3 + New Features

How can I find QTextTable in QTextDocument?

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 208 Views 1 Watching
  • 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.
  • A Offline
    A Offline
    Alexey Serebryakov
    wrote on last edited by
    #1

    Hi guys,

    I have QTextDocument and I need find all QTextTable's object and export them to CSV files.

    How can I iterate all QTextDocument objects and find all QTextTable?

    Thanks a lot!

    jsulmJ 1 Reply Last reply
    0
    • A Alexey Serebryakov

      Hi guys,

      I have QTextDocument and I need find all QTextTable's object and export them to CSV files.

      How can I iterate all QTextDocument objects and find all QTextTable?

      Thanks a lot!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Alexey-Serebryakov Documentation (https://doc.qt.io/qt-6/qtextdocument.html) says:
      "The entire document structure is stored as a hierarchy of document elements beneath the root frame, found with the rootFrame() function".
      So, use rootFrame() and then https://doc.qt.io/qt-6/qtextframe.html#childFrames to get all frames and try to cast each of them to QTextTable.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      4
      • A Alexey Serebryakov has marked this topic as solved on

      • Login

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