Hi,
I try to modify qtexample to work on dualhead videocards under linux w/o 
xinerama
but no luck
So If I need to place qt window on second screen I have to use this
QApplication app( argc, argv );
  QDesktopWidget* desktopWidget1 = app.desktop();
  QWidget *widget1=desktopWidget1->screen(1);
and simply want to place outboard window on second screen
   QPointer<testOutboardWin> mySecondaryWindow = new testOutboardWin(widget1);

     QWidget *outboardGfx = mySecondaryWindow->getDrawingAreaWidget();
    osg::ref_ptr<ViewQOSG> outboardView = static_cast<ViewQOSG*>( outboardGfx );
    outboardView->setObjectName("ViewQOSG Outboard");
    outboardView->setData( Fountain );

    // Note that outboardView, in a completely different window, is going to be
    // managed by the compositeViewer in the QMainWindow.
    compositeViewer->addView( outboardView.get() );

    mySecondaryWindow->show();

And I have white screen on second output and this in console

X Error: BadMatch (invalid parameter attributes) 8
  Extension:    135 (Uknown extension)
  Minor opcode: 5 (Unknown request)
  Resource id:  0x4600019

When I try to use QOGLWidget in osg examples it works fine with QDesktopWidget 
approach but here I got to separate views and I want to work with 
CompositeViewer
So maybe there is a solution how to make it?
 
Thank you!

Cheers,
Roman

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=14087#14087





_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to