Items from successful mining have random QL, but the maximum possible is the lower of your mining skill and the tile's inherent quality. See prospecting for details about tile quality. Note: In order to gain skill from a mining action the by product has to be anywhere in between and quality range.