[Qt-interest] Re : Re : Re : Rendering widget on Multiple screens
Nitin Mahajan
nitinm76 at yahoo.com
Fri Dec 11 12:54:26 CET 2009
Hello,
--- On Thu, 10/12/09, Oliver.Knoll at comit.ch <Oliver.Knoll at comit.ch> wrote:
> From: Oliver.Knoll at comit.ch <Oliver.Knoll at comit.ch>
> Subject: Re: [Qt-interest] Re : Re : Re : Rendering widget on Multiple screens
> To: qt-interest at trolltech.com
> Date: Thursday, 10 December, 2009, 4:00 PM
> BOUCARD Olivier wrote on Thursday,
> December 10, 2009 9:50 AM:
>
> > This will work if the screens are in "virtual desktop"
> mode. But in
> > case of "multiple desktops" what is the behavior?
>
> Well, what about http://doc.trolltech.com/4.6/qdesktopwidget.html#screen
> and pass this as parent to your dialog / mainwindow widget,
> as I initially suggested? Doesn't that work?
>
> You can also find out about the desktop geometry with http://doc.trolltech.com/4.6/qdesktopwidget.html#screenGeometry
> and place your widget accordingly.
>
I started three VFb screens on my desktop and did
export QWS_DISPLAY="Multi: QVFb:0 QVFb:1 QVFb:offset=20,0:2"
Now if I execute the program and try to show it on screen 1 or screen 2, I get to see it on all screens. Here is the code,
QDesktopWidget *d_widget;
d_widget = QApplication::desktop();
QWidget *w = d_widget->screen(1);
MyWidget widget(w);
regards
-Nitin
> Cheers, Oliver
> --
> Oliver Knoll
> Dipl. Informatik-Ing. ETH
> COMIT AG - ++41 79 520 95 22
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
Get your new Email address!
Grab the Email name you've always wanted before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/
More information about the Qt-interest-old
mailing list