QGIS now exposes the OGR FID as first attribute when it is meaningful, eg for GPKG and other database based drivers.
This feature was developed by Even Rouault
This application was created by Kartoza (Pty) Ltd. Available on GitHub! Version: 2.3.1