Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt doesn't simulator work?

Qt doesn't simulator work?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Miikukka
    wrote on last edited by
    #1

    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.

    There are no stupid questions, only stupid answers.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      Did you re-run qmake?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Miikukka
        wrote on last edited by
        #3

        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?

        There are no stupid questions, only stupid answers.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved