Login
Username:

Password:


Lost Password?

Register now!
Main Menu
H3D.org Feeds
H3D.org Forum Index
   Programming Issues
     QT with H3D - Placing QWidgets on Multiple Monitors
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
GBaitson
Posted on: 2010/1/27 14:39
Quite a regular
Joined: 2009/5/19
From: National Digital Research Centre
Posts: 25
QT with H3D - Placing QWidgets on Multiple Monitors
Hi all, I was wondering would someone be able to help with a probelm.

Im using QT to design a GUI for H3D. I have two QWidgets *qw1 and *qw2, and I want place qw1 on my primary monitor and qw2 on my external monitor. I have been looking through the documentation on ways to do this. I came across the QDesktopWidget which looks to be the class to use, but I just can't seem to implement it for this functionality.

Does anyone have any experience in developing QT with H3D and would anybody be able to help placing QWidgets on different monitors?
GBaitson
Posted on: 2010/1/27 15:38
Quite a regular
Joined: 2009/5/19
From: National Digital Research Centre
Posts: 25
Re: QT with H3D - Placing QWidgets on Multiple Monitors
Hi all,

The working code for the above problem is as follows

QDesktopWidget *myQDesktopWidget = QApplication::desktop();

QRect myQRect = myQDesktopWidget->availableGeometry(1);
qw2->setGeometry(myQRect);
Threaded | Newest First Previous Topic | Next Topic | Top

Register To Post
 



(C) 2004 SenseGraphics AB    ---    Powered by XOOPS