Results 1 to 6 of 6

Thread: QMainWindow to display X Window

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2009
    Location
    India
    Posts
    143
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QMainWindow to display X Window

    Hi all,

    I have developed a Qt application, with QMainWindow as main Object. Inside the same Qt application there is a X Window instructions to create a X Window. Code got compiled successfully . Both my Qt window and X window will display separately.Please refer the PNG attachment. I need the X Window to be displayed on QMainWindow. Somebody please guide.

    I got below errors when i am trying to integrate X and Qt

    X Error: BadWindow (invalid Window parameter) 3
    Major opcode: 3 (X_GetWindowAttributes)
    Resource id: 0x0
    Error: Couldn't find per display information

    I have attached the code of main.cpp for reference
    Attached Images Attached Images
    Attached Files Attached Files

Similar Threads

  1. QMainWindow as a child of QMainWindow
    By Elder Orb in forum Qt Programming
    Replies: 8
    Last Post: 12th February 2011, 21:31
  2. Open QMainWindow to use xterm window as parent
    By muenalan in forum Qt Programming
    Replies: 0
    Last Post: 1st July 2010, 08:43
  3. QMainWindow modal from non-qt window?
    By hickscorp in forum Qt Programming
    Replies: 3
    Last Post: 21st November 2008, 09:10
  4. Move QT Window to different x display
    By jbpvr in forum Qt Programming
    Replies: 1
    Last Post: 5th September 2007, 20:28
  5. how to display a window full screen??
    By Seema Rao in forum Qt Programming
    Replies: 1
    Last Post: 8th May 2006, 12:07

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
  •  
Qt is a trademark of The Qt Company.