Hi I'm new here, used to program a lot (visual basic) and decided to jump into QT on my return to programming.

Now here's my problem. I'm pretty sure I followed all the steps correctly but upon compiling(which it does) and then running. I click my button and... nothing. No list getting filled and no crashing either, not sure were I went wrong but any help would be great.

Qt Code:
  1. #include "primary.h"
  2. #include "ui_primary.h"
  3.  
  4. Primary::Primary(QWidget *parent) :
  5. QMainWindow(parent),
  6. ui(new Ui::Primary)
  7. {
  8. ui->setupUi(this);
  9. }
  10.  
  11. QString newName;
  12. QString newNumber;
  13. QString details;
  14.  
  15. void Primary::on_addBtn_click()
  16. {
  17. newName = ui->nameText->text();
  18. newNumber = ui->numberText->text();
  19. details = ui->details->toPlainText();
  20.  
  21. ui->list->addItem(new QListWidgetItem(QString("%1 %2").arg(newName).arg(newNumber)));
  22. }
  23.  
  24. Primary::~Primary()
  25. {
  26. delete ui;
  27. }
To copy to clipboard, switch view to plain text mode 

If anyone has any ideas I'd be much obliged. It's probably just something dumb I'm missing but I don't know.