Sup guys.

I'm trying to set a value for my button of another file in this print is in the main but my intention is to put in the socket.cpp.

The error that is happening is that my program crashes. Thanks

http://i.cubeupload.com/4OmfAJ.png <- pic from crashes.

Code:
Qt Code:
  1. #include "socket.h"
  2. #include "mainwindow.h"
  3. #include "ui_mainwindow.h"
  4. #include <QApplication>
  5.  
  6. int main(int argc, char *argv[])
  7. {
  8. QApplication a(argc, argv);
  9. Socket s;
  10. MainWindow w;
  11. w.show();
  12. w.setWindowTitle("olea");
  13. Ui::MainWindow *abcde;
  14. abcde->btnEnviar->setText("olea");
  15. return a.exec();
  16. }
To copy to clipboard, switch view to plain text mode