Selecting a specific QScreen based on a configuration and the screen's name
-
The QScreen documentation states that the name property should not be used for uniquely identifying a screen. However, I have an application which reads a configuration file. I want to be able to specify in that configuration file what particular QScreen my application shall run in. The only usable value I found is the name. For example, if the name is "DisplayPort-1", I'd specify that in the configuration.
Does "uniquely identifying" refer to attempts to uniquely identify the screen across hosts etc.? Is it okay to use the name to identify the screen within the same machine, especially if no screens are ever added or removed? Or is there a different property that is better suited for this purpose?
-
@dv__ You could also use https://doc.qt.io/qt-6/qscreen.html#serialNumber-prop
-