I did both, as in the following codes, both w1 & w2 are only showing in one screen. Any ideas? Thanks
#include <QApplication>
#include <QWidget>
int main( int argc, char** argv )
{
w1.setWindowTitle( "w1" );
w1.
setGeometry( QRect( 0,
0,
3840,
1200 ) );
w1.show();
w2.setWindowTitle( "w2" );
w2.resize( 3840, 1200 );
w2.move( 0, 0 );
w2.show();
return app.exec();
}
#include <QApplication>
#include <QWidget>
int main( int argc, char** argv )
{
QApplication app( argc, argv );
QWidget w1;
w1.setWindowTitle( "w1" );
w1.setGeometry( QRect( 0, 0, 3840, 1200 ) );
w1.show();
QWidget w2;
w2.setWindowTitle( "w2" );
w2.resize( 3840, 1200 );
w2.move( 0, 0 );
w2.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks