Results 1 to 2 of 2

Thread: To incorporate a window in Qt

  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 To incorporate a window in Qt

    Hi all,

    I need to add a third party window created by some classes ( listed below) to my Qt Widget or Qgraphicsview ...How do i achieve this


    My third party classes can able to create a window like this.

    Qt Code:
    1. Ascan = new spxascan;
    2. Ascan -> create ( window ,0, x,y , wid, height) ;
    To copy to clipboard, switch view to plain text mode 

    Class Definition of Create Code:
    1. The create function definition for linux is like this :
    2.  
    3. Create(Display *display, Drawable destination, int xpos, int ypos, int width , int height)
    To copy to clipboard, switch view to plain text mode 


    Regards,
    Augus

  2. #2
    Join Date
    Sep 2010
    Location
    Germany
    Posts
    28
    Thanks
    1
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: To incorporate a window in Qt

    We do something similar with Delphi windows.

    I don't know how it works on unix system but i can give u a hint for windows:

    -> Grab the originally windows handle of your window
    -> Create a QWinWidget instance and pass that handle to it.
    The QWinWidget class does the rest.

    And then you can use this widget in layouts.

    I think there should be something similar on unix systems.

Similar Threads

  1. Replies: 12
    Last Post: 9th March 2011, 15:46
  2. Replies: 3
    Last Post: 29th December 2010, 17:14
  3. Replies: 0
    Last Post: 10th September 2010, 13:23
  4. Replies: 11
    Last Post: 4th June 2008, 07:22
  5. How To Incorporate Progress Bar In Program
    By deekayt in forum Qt Programming
    Replies: 8
    Last Post: 20th December 2006, 14:40

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.