Qt doesn't simulator work?



  • I did some project and first it works. Later when i test it, it didn't work. I think I didn't do anything for it, but it doesn't open in any "simulator". Debug, release, simulator for MinGW 4.4 ... anything doesn't open. What wrong? Any other project can open and always comes onle text: "collect2: ld returned 1 exit status".
    @#include "test.h"
    #include "ui_test.h"

    Test::Test(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::Test)
    {
    ui->setupUi(this);
    }

    Test::~Test()
    {
    delete ui;
    }

    void Test::on_pushButton_clicked()
    {
    int a = 100-ui->spinBox->value();
    int b = ui->spinBox_4->value();
    int c = 12-ui->spinBox_2->value();
    int d = ui->spinBox_5->value();
    int e = 31-ui->spinBox_3->value();
    int f = ui->spinBox_6->value();
    ui->listWidget->addItem(QString::number(((((a*20+3)*5+c)*20+3)5+e-1515)+((((b20+3)*5+d)*20+3)5+f-1515)-10100)+(((((a20+3)*5+c)*20+3)5+e-1515)+((((b20+3)*5+d)*20+3)*5+f-1515)-10100)/40000);
    }
    @
    Do you know what's the problem or is my Qt broken?
    What I must do to get it works?
    Thanx and sorry my bad English.



  • Did you re-run qmake?



  • In my project was some kind of error, so I start again.
    If I do command like this why it doesn't name letter c.
    @void Testi::on_pushButton_clicked()
    {
    int a = 100-ui->spinBox->value();
    int b = 12-ui->spinBox_2->value();
    if (b==1)
    {
    int c = 31-ui->spinBox_3->value();
    }
    else if (b==2)
    {
    int c = 28-ui->spinBox_3->value();
    }
    else if (b==4)
    {
    int c = 30-ui->spinBox_3->value();
    }
    int d = ui->spinBox_4->value();
    int e = ui->spinBox_5->value();
    int f = ui->spinBox_6->value();
    ui->listWidget->addItem(QString::number(((10000a+10000d+100b+100e+c+f)-10100)+(a+d)/4));@
    Is there something wrong in my project?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.