hi i have a mainwindow.ui that has one QLineEdit named nodes and also a pushButton...and i have a secwindow.ui with two QLineEdit named nodes1, nodes2
what i want to do is when a entering a certain number in nodes, let's say "1" so i would want to make nodes1 empty and nodes2 has a text as "Null".
my problem is where to put my if statment that include all three line edits?
mainwindow.h
Code:
.... public: SecWindow *secwindow; signals:
mainwindow.cpp
Code:
void MainWindow::on_pushButton_clicked() { secwindow = new SecWindow(this); connect(nodes,&QLineEdit::textChanged,secwindow,&SecWindow::nodes1); //a connect between nodes if(number_of_nodes == "1"){ // i cant put a condition } // between nodes and nodes1 secwindow->show();
secwindow.h
Code:
...... public slots: private slots: void on_pushButton_clicked();
secwindow.cpp
Code:
{ }
so am not very clear where to add my if stament in mainwindow.cpp
or secwindow.cpp
please help me