Important: Please read the Qt Code of Conduct -

How to check circular references in qtablewidget cells?

  • 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.

  • Lifetime Qt Champion

    @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.

Log in to reply