Skip to content

用于给QT开发的带ui程序,进行快速的全屏保持比例自适应不同分辨率的屏幕,无需进行特殊布局

Notifications You must be signed in to change notification settings

qq821181867/PcSystemAutoFullscreen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

PcSystemAutoFullscreen

用于给QT开发的带ui程序,进行快速的全屏保持比例自适应不同分辨率的屏幕,无需进行特殊布局

具体使用: m_pMainWindow = new MainWindow(); // QRect rect = QApplication::desktop()->screenGeometry(); if(rect.size()!=CustomGraphicsView::getNormalSize()) { CustomGraphicsView pCustomGraphicsView = new CustomGraphicsView(new QGraphicsScene()); pCustomGraphicsView->setMainWidget(m_pMainWindow); pCustomGraphicsView->setGeometry(0,0,rect.width(),rect.height()); } // m_pMainWindow->setGeometry(0,0,rect.width(),rect.height()); m_pMainWindow->show();

About

用于给QT开发的带ui程序,进行快速的全屏保持比例自适应不同分辨率的屏幕,无需进行特殊布局

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages