undefined reference due to re-factoring or deleting GUI element in QT

“undefined reference” in moc_mainwindow after re-factoring or deleting GUI element



1. remove associate slots from the code
2. remove everything from from shadow build (WARNING: Do NOT remove source code; shadow build directory is different from directory where source code is located)

Get Latitude and Longitude using GPS in Android

Objective:
To retrieve Latitude and Longitude of current position using GPS

Function:
When the button is pressed, small pop up will be displayed to inform the status of GPS. If GPS is not enable, GPS dialog will be pop up and let user to choose setting. Once the GPS is enable, 'GPS is already enable' will be pop up after the 'Get GPS Status' Button is pressed. Then latitude and longitude will be displayed as pop up. 

IDE:
Android Studio 1.0.2

Source Code:
The project can be downloaded from here.

Note:
This is the continuous tutorial from here.

Result:

                       

Check GPS status and open dialog to set GPS setting

Objective:
To check GPS status and open dialog to set GPS setting

Function:
When the button is pressed, small pop up will be displayed to inform the status of GPS. If GPS is not enable, GPS dialog will be pop up and let user to choose setting. Once the GPS is enable, 'GPS is already enable' will be pop up after the 'Get GPS Status' Button is pressed.

IDE:
Android Studio 1.0.2

Source Code:
The project can be downloaded from here.

Note:
This is the continuous tutorial from here.

Result: