maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [Solved] Harmattan segfault with on_pushButton_clicked() (https://talk.maemo.org/showthread.php?t=93017)

azkay 2014-04-12 11:07

[Solved] Harmattan segfault with on_pushButton_clicked()
 
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?

coderus 2014-04-12 11:52

Re: [Solved] Harmattan segfault with on_pushButton_clicked()
 
gdb for debugging


All times are GMT. The time now is 19:28.

vBulletin® Version 3.8.8