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. Manually deleted widget from Uİ now new ones does not work
Forum Updated to NodeBB v4.3 + New Features

Manually deleted widget from Uİ now new ones does not work

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 214 Views
  • 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.
  • G Offline
    G Offline
    GunkutA
    wrote on last edited by
    #1

    Hello, I have put a a checkbox in the UI then deleted it from UI and from header. Now I want to place a new checkbox I put it in the UI and create slot for it:

    void MainWindow::on_checkBox_3_stateChanged(int arg1)
    {
        if(ui->checkBox_3->isChecked()){
    
            qDebug()<<"Pressed.";
        }
    }
    

    It never enters to if statement. I believe I broke something up while I was trying to remove the previous checkbox. How can I fix it any suggestions?

    jsulmJ 1 Reply Last reply
    0
    • G GunkutA

      Hello, I have put a a checkbox in the UI then deleted it from UI and from header. Now I want to place a new checkbox I put it in the UI and create slot for it:

      void MainWindow::on_checkBox_3_stateChanged(int arg1)
      {
          if(ui->checkBox_3->isChecked()){
      
              qDebug()<<"Pressed.";
          }
      }
      

      It never enters to if statement. I believe I broke something up while I was trying to remove the previous checkbox. How can I fix it any suggestions?

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @GunkutA Looks like you're using the auto-connect feature.
      Did you try to connect manually to see whether that works?
      Also, did you do a complete clean rebuild?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      4
      • G Offline
        G Offline
        GunkutA
        wrote on last edited by
        #3

        Hello, after I manually connect it now both of them works. Thank you.

        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