guys can anyone tell me how can i create sibling widget i am using two qvideowidget i want one to be sibling od other and the i need to use it the command stack under to put it under one another.
Please help me in this.
guys can anyone tell me how can i create sibling widget i am using two qvideowidget i want one to be sibling od other and the i need to use it the command stack under to put it under one another.
Please help me in this.
how can i do that means syntax can you help me with a sample code.
Pass the same parent to constructors of both widgets.
Qt Code:
To copy to clipboard, switch view to plain text mode
QWidget *window=new QWidget();
{ window->resize(400,300);
window->show();}
screen = new QVideoWidget(window);
mediaPlayer.setVideoOutput(screen);
//screen->show();
screen1 = new QVideoWidget(window);
mediaPlayer1.setVideoOutput(screen1);
screen1->stackUnder(screen);
i did it like this
is screen 1 and screen siblings?
Bookmarks