Stack Widget on top of WebEngineView



  • I want stack a widget on top of WebEngineView. code as:
    Widget::Widget(QWidget *parent)
    : QWidget(parent)
    {
    QWebEngineView *wev = new QWebEngineView(this);
    wev->show();

    QWidget *z = new QWidget(wev);
    z->setMinimumSize(QSize(400,400));
    z->setGeometry(0, 0, 100, 100);
    
    z->show();
    
    wev->stackUnder(z);
    

    }

    but the widget doesn't get display



  • Can any one help me for this issue?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.