QT Development Notes

 

Set the title bar icon, location and size example

:: MainWidow MainWidow (the QWidget * parent) 
    : The QMainWindow (parent) 
{ 
    ui.setupUi ( the this );
     the this -> setWindowTitle ( " QQ " );
     the this -> setWindowIcon (QIcon ( " : /images/po.jpg " )) ; // settings icon 
    the this -> setWindowFlags (the Qt :: FramelessWindowHint); // remove title bar 
    the this -> setGeometry (QRect ( 950 , 55 , 350 , 250 ;)) // orientation and size of the window may be provided 
}

 

Guess you like

Origin www.cnblogs.com/2018shawn/p/11404767.html