Reply
Thread Tools
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.
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#2
gdb for debugging
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following User Says Thank You to coderus For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 14:30.