Results 1 to 6 of 6

Thread: QMainWindow to display X Window

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QMainWindow to display X Window

    True, I missed that there is a file attachment under the image. Sorry.

    In your code I can't figure out, where you set the X window in your TopLevel (QMainWindow) object (in a layout or similar). Also I can't see where you use QX11EmbedWidget.

  2. #2
    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 Re: QMainWindow to display X Window

    Quote Originally Posted by Lykurg View Post
    True, I missed that there is a file attachment under the image. Sorry.

    In your code I can't figure out, where you set the X window in your TopLevel (QMainWindow) object (in a layout or similar). Also I can't see where you use QX11EmbedWidget.
    Hi,

    Thanks for your reply .

    Completely new on integrating X with Qt. I didn't use QX11EmbedWidget? in my code . No idea of exactly how to use it in this case.

    In my code there are 3rd party libraries are used for X window creation.

    if You see the below code, it creates Window and use the display id ,given by me.

    Qt Code:
    1. SPxScDestDisplayX11 *scDestX11;
    2. scDestX11 = new SPxScDestDisplayX11();
    3. scDestX11->UseDisplay(TopLevel->x11Info().display()); // I am using QWindow as a display input ,Not sure whether its right
    4. scDestX11->Create(0, 1600, 1200, 0, 0, 0);
    To copy to clipboard, switch view to plain text mode 

    Below code is for giving the display details of Qt in it
    Qt Code:
    1. SPxScFollowX11 *WinFollow = new SPxScFollowX11(ScanConverter,TopLevel->x11Info().display(),win,0); // win is my Window id if you see the attached file
    To copy to clipboard, switch view to plain text mode 
    .

    If you want i can sent across the GTK code used by them for the same what i am trying to do with QT.

    Advise me.

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.