I did both, as in the following codes, both w1 & w2 are only showing in one screen. Any ideas? Thanks

Qt Code:
  1. #include <QApplication>
  2. #include <QWidget>
  3.  
  4. int main( int argc, char** argv )
  5. {
  6. QApplication app( argc, argv );
  7.  
  8. QWidget w1;
  9. w1.setWindowTitle( "w1" );
  10. w1.setGeometry( QRect( 0, 0, 3840, 1200 ) );
  11. w1.show();
  12.  
  13. QWidget w2;
  14. w2.setWindowTitle( "w2" );
  15. w2.resize( 3840, 1200 );
  16. w2.move( 0, 0 );
  17. w2.show();
  18.  
  19. return app.exec();
  20. }
To copy to clipboard, switch view to plain text mode