Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
None
-
4.7.3
-
None
-
MacOs 10.6.8
QtCreator 2.1
QtSDK 1.1
Description
Steps to reproduce:
1.Create window based on QDeclarativeView
2. setMask with region or QPixmap->mask()
main.cpp
#include <QtGui/QApplication> #include "mainwindow.h" int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); return a.exec(); }
mainwindow.h
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QDeclarativeView> class MainWindow : public QDeclarativeView { public: explicit MainWindow(QWidget *parent = 0); }; #endif // MAINWINDOW_H
mainwindow.cpp
#include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QDeclarativeView(parent) { this->setMask(QRegion(0,0, this->size().width(), this->size().height(), QRegion::Ellipse )); }
On Windows 7 we have ellipse shaped window clipped with specific region.
On MacOs 10.6.8 setMask do nothing.
Screenshots for Win7 and MacOs windows and sources are in attachments
Attachments
Issue Links
- relates to
-
QTBUG-71951 add QML API for window mask
- Reported