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

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -