The measurement and magnification in QuPath are read from the metadata in the image file, so if QuPath is not picking it up, either the metadata is in a format it cannot read, or the metadata is not there to process.
If the metadata is there and is not being found, one possibility is that you could add the Bioformats extension, instructions here:
https://github.com/qupath/qupath-bioformats-extensionIf the metadata does not exist, you will need to either add that through ImageJ or another program. ImageJ can be accessed through QuPath using the Extensions menu.
If you could provide further information on what your image file type is, I might be able to be more specific.