Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [Solved]Test89.exe stop working

    General and Desktop
    2
    5
    1218
    Loading More Posts
    • 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.
    • D
      Diluka last edited by

      Hi
      In my Qt Application i had button to genarate tab dyanamically but i clicked that button it disply that error message ->Test89.exe stop working please anyone can suggest solution for that specailly why that error message occured common reason ?

      thanks

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        Without any code it's essentially crystal ball guessing:

        • Invalid pointer ?
        • Memory Access Error ?
        • Memory Leak ?
        • Others ?

        Did you run your application through a debugger ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • D
          Diluka last edited by

          My code

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

          QObject::connect(ui->pushButton,SIGNAL(clicked()),this,SLOT(tabGenarate()));
          

          }

          void MainWindow::tabGenarate()
          {

          tab = new QWidget;
          
          tabWidget->addTab(tab,"New");
          
          ui->verticalLayout->addWidget(tabWidget);
          

          }
          @

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            what is tabWidget ? Were is it initialized ?

            Are you sure that your ui has a member verticalLayout ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 0
            • D
              Diluka last edited by

              Ohoooo Really missing initialized tabWidget

              thanks Lot

              1 Reply Last reply Reply Quote 0
              • First post
                Last post