Important: Please read the Qt Code of Conduct -

QTableWidget cannot be accessed

  • Hello everybody,

    I have a QTabWidget with 2 tabs (Data and Control), and inside the Data tab, I have set up an QTableWidget and 2 buttons to create and delete rows. The issue is that the create and delete buttons clicked() slot cannot see the QTableWidget or any other widget for that matter.

    Can someone explain why the QTableWidget isn't accessible from within the newRowButton and deleteRowButton clicked() functions?

    Thank you very much,

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    How did you determine that ?

  • I see my silly mistake now, I thought I could access directly DatatableWidget->, but I see I have to access it through ui->DatatableWidget->...

    Silly me, thanks anyway.

Log in to reply