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 -

objective c - How to open front/back camera at the same time in iOS developing? -

GO: Serve static pages -