Use showFullScreen() instead of using a flag
This commit is contained in:
		
							
								
								
									
										3
									
								
								main.cpp
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								main.cpp
									
									
									
									
									
								
							@@ -180,8 +180,7 @@ int main(int argc, char *argv[]) {
 | 
				
			|||||||
    worker.setMainWindow(&mw);
 | 
					    worker.setMainWindow(&mw);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    mw.setWindowFlags(Qt::Window | Qt::FramelessWindowHint);
 | 
					    mw.setWindowFlags(Qt::Window | Qt::FramelessWindowHint);
 | 
				
			||||||
    mw.setWindowState(Qt::WindowFullScreen);
 | 
					    mw.showFullScreen();
 | 
				
			||||||
    mw.show();
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return a.exec();
 | 
					    return a.exec();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user