Results 1 to 1 of 1

Thread: QDesktopWidget

  1. #1
    Join Date
    Jan 2006
    Location
    Ohio
    Posts
    332
    Thanks
    37
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default QDesktopWidget

    I have a program running mostly on Solaris 10 with 4 monitors and 4 independent video cards causing me to have 4 individual desktops. So I use the QDesktopWidget to create certain windows on certain desktops since the user can't drag a window from one screen to another. However, sometimes I run this program remotely on a machine that has just one desktop. Whenever I run this remotely, I get a GLXBadCurrentWindow error when I attempt to create a window on a desktop that isn't desktop 0. Everything works and appears just fine, but my command line window shows me this error. Is there anyway to check and see how many desktops the displaying machine has rather than the running machine since in my case the running machine has 4 desktops but the displaying machine has only 1 desktop. Thanks!

    Edit: Upon further investigation I noticed the QDesktopWidget was returning that I only had 1 screen so it knew my remote display was 1 screen and not the 4 screens on the running machine. However I was creating 2 different QDesktopWidgets so one window got one QWidget for its parent and the other 3 windows got a different QWidget for their parent. I have printed out the parents address in memory for all 4 windows and they all share the same parent, but the 2nd window I create still generates a GLXBadCurrentWindow error during its creation. The error occurs between a line calling

    new Plot( ... ) and the very first line in the Plot's constructor. The error is occurring somewhere in the QGLWidget's constructor. Thanks for any further help anybody has!
    Last edited by ToddAtWSU; 3rd July 2008 at 17:24.

Similar Threads

  1. QDesktopWidget initialization
    By drweilert in forum Qt Programming
    Replies: 4
    Last Post: 8th May 2011, 19:42
  2. leaveEvent on transparent area issue
    By nooky59 in forum Qt Programming
    Replies: 10
    Last Post: 8th January 2008, 13:22
  3. QDesktopWidget Screenshot && Mouse grab
    By patrik08 in forum Qt Programming
    Replies: 3
    Last Post: 29th March 2007, 10:51

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.