Qt Code:
  1. connect(ui.tree, SIGNAL(itemClicked (tables,0)), this, SLOT(selectTable()))
To copy to clipboard, switch view to plain text mode 

You can't set values in connect statements. You should use types there.

Try this:
Qt Code:
  1. connect(ui.tree, SIGNAL(itemClicked (QTreeWidgetItem*,int)), this, SLOT(selectTable()))
To copy to clipboard, switch view to plain text mode