hidpi force auto
This commit is contained in:
		
							parent
							
								
									7d7ee4140d
								
							
						
					
					
						commit
						54244f9963
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -21,6 +21,9 @@ extern void disableWindowTabbing(); | |||
| int main(int argc, char* argv[]) { | ||||
|   qSetMessagePattern(QSL("time=\"%{time process}\" type=\"%{type}\" -> %{message}")); | ||||
| 
 | ||||
|   // High DPI stuff.
 | ||||
|   qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1"); | ||||
| 
 | ||||
| #if QT_VERSION_MAJOR <= 5 | ||||
|   QApplication::setAttribute(Qt::ApplicationAttribute::AA_UseHighDpiPixmaps); | ||||
|   QApplication::setAttribute(Qt::ApplicationAttribute::AA_EnableHighDpiScaling); | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue