Qt Form and main.cpp communication -


is a QT project with mainwindow (GUI application), how can I communicate with my main communication through my form

You can use the QT signal / slot functionality You can.

Example:

// on mainwindow.cpp. Pasted as a title on Delcare onButton () ButtonClicked on title zero () {++ myVar; } Connect (myButton, Signal (click) ()), this, slot (onButtonClicked ());

.


Comments

Popular posts from this blog

Folder list php -

testing Spring-Security -

javascript - NodeJS "Error code: ERR_EMPTY_RESPONSE" -