
Originally Posted by
Lykurg
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.
SPxScDestDisplayX11 *scDestX11;
scDestX11 = new SPxScDestDisplayX11();
scDestX11->UseDisplay(TopLevel->x11Info().display()); // I am using QWindow as a display input ,Not sure whether its right
scDestX11->Create(0, 1600, 1200, 0, 0, 0);
SPxScDestDisplayX11 *scDestX11;
scDestX11 = new SPxScDestDisplayX11();
scDestX11->UseDisplay(TopLevel->x11Info().display()); // I am using QWindow as a display input ,Not sure whether its right
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
SPxScFollowX11 *WinFollow = new SPxScFollowX11(ScanConverter,TopLevel->x11Info().display(),win,0); // win is my Window id if you see the attached file
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.
Bookmarks