Ok i try to explain.. because i do not understand...sorry for my english...
This project has a MainWindow.
Inside the mainWindow i have a QFrame.
In this QFrame i added MapProprietaryWidget, this widget is from a simualtion engine, so i dont' know if it is possible to draw inside this layer, and i don't know how to reimplement qpaintevent for this widget...
This special widget is from MAK Simulators it is a DtBaseWindow... something like a QtBaseWindow..i think..
I know QT not the Framework from which this widget came... and i do not know how to add a layout to this widget..
So I try the solution to draw the MASK inside the QFrame, (so i've reimplent paintevent of QFrame subclassing..."using promote to" and this works..)
Please i did not find comment #8... where ?
Thank you very much for your precious support...
In other words problem will be :
I've a QFrame, I added a widget to this QFrame and finally i need to put overall a ShapeMask
At the moment i've create a simple widget sublcassing qwidget, then implement qpaintevent in which i insert the shape.
then
mapframe->layout->addwidget(MapProprietaryWidget);
MapMask* overlay = new MapMask();
MapMask->setparent(mapframe);
mapframe->layout->addwidget(MapProprietaryWidget);
MapMask* overlay = new MapMask();
MapMask->setparent(mapframe);
To copy to clipboard, switch view to plain text mode
So i see the shape over the map but i cannot click on the map at all to make zoom pan hook...at all... clicking inside the hole... so problem still remains...no solution still found...
Adding this to
Bookmarks