Hello,
I am developing a GUI using PyQt5. Whenever I connect my laptop to an extended monitor via an HDMI cable and disconnect it and run my GUI on laptop the font size of all of the Buttons become too small making it too tuff to read.
I have tried using -
QApplication.setAttribute(Qt.AA_EnableHighDpiScali ng)
QApplication.setAttribute(Qt.AA_UseHighDpiPixmaps)
But it still does not help with the issue.
All the GUI components i have created to VBox or HBox layouts.
Please note that this issue gets resolved once i restart my laptop and re-run the GUI.
Can you please help me in resolving this issue.


 
					
					 
							
						 
    
    
    
    
    
   
    
    
       
    
    
    
    
   PyQt5 GUI -- Resolution Inconsistency issue in Desktop and Laptop
 PyQt5 GUI -- Resolution Inconsistency issue in Desktop and Laptop
		 
				
				
				
					 Reply With Quote
  Reply With Quote Re: PyQt5 GUI -- Resolution Inconsistency issue in Desktop and Laptop
 Re: PyQt5 GUI -- Resolution Inconsistency issue in Desktop and Laptop
		 
			
Bookmarks