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 to check circular references in qtablewidget cells?
Qt 6.11 is out! See what's new in the release blog

How to check circular references in qtablewidget cells?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtablewidget
2 Posts 2 Posters 323 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.
  • Y Offline
    Y Offline
    y_belikov
    wrote on last edited by y_belikov
    #1

    Hi everyone! I'm working on app like a Microsoft Excel, simple programm to work with spreadsheets. To make core Spreadsheet class functionality i use inheritance from QTableWidget class. But how I can check a circular references in cells of table widget? For example if you have cell A1 which refer to cell A2 and A2 which refer to A1 and so on, you should get a warning message.

    jsulmJ 1 Reply Last reply
    0
    • Y y_belikov

      Hi everyone! I'm working on app like a Microsoft Excel, simple programm to work with spreadsheets. To make core Spreadsheet class functionality i use inheritance from QTableWidget class. But how I can check a circular references in cells of table widget? For example if you have cell A1 which refer to cell A2 and A2 which refer to A1 and so on, you should get a warning message.

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

      @y_belikov Well, follow the references until you reach the first cell (then you have circular references) or last cell without references.
      For the first case you actually should see whether you visit one cell more than once.

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

      1 Reply Last reply
      1

      • Login

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