QMainWindow title can't be removed on iOS
Unsolved
Mobile and Embedded
-
int main(int argc, char *argv[]) { QApplication a(argc, argv); QMainWindow w; w.setWindowFlags(Qt::CustomizeWindowHint); w.setStyleSheet("background-color:red;"); QWidget *ce = new QWidget(&w); { QRect screenGeometry = QGuiApplication::primaryScreen()->geometry(); int screenHeight = screenGeometry.height(); int screenWidth = screenGeometry.width(); w.setFixedWidth(screenWidth); w.setFixedHeight(screenHeight); ce->setFixedWidth(screenWidth); ce->setFixedHeight(screenHeight); ce->setStyleSheet("background-color:blue;"); } w.setCentralWidget(ce); w.show(); return a.exec(); }
The result on iPhone 12pro is:
There is no any red on Desktop (as expected).
Qt::FramelessWindowHint doesn't work also.
Does anyone have idea how to deal with it?