View Single Post
Posts: 395 | Thanked: 509 times | Joined on Jan 2011 @ Brisbane, Australia
#1
Code:
void MainWindow::on_pushButton_clicked()
{
    /*if(ui->lineEdit->text() == "test"){
        ui->lineEdit->hide();
        ui->pushButton->hide();
        ui->listWidget->show();

        QString responseText = GET("http://www.azkay.com/");
        if(responseText == "error"){
            ui->lineEdit->show();
            ui->pushButton->show();
            ui->listWidget->hide();
        }else{
            for(int i = 0; i < 10; i++){
                ui->listWidget->addItem("test");
            }
        }
    }*/
}
EDIT::
Nevermind, fixed it.
Forgot I had an invisible button above the first button, which was accessing things that didn't exist yet.

Ha.

Any reason anyone could think of as to why clicking the button (which has no code, anyway), kills the program with "Segmentation fault"?

It runs fine on desktop, but setting it to run on my N9 kills it.
Anyone know how to debug it?

Last edited by azkay; 2014-04-12 at 11:19.