Results 1 to 3 of 3

Thread: Wrap a static QT library inside an XPCOM component ?

  1. #1

    Default Wrap a static QT library inside an XPCOM component ?

    Hi,

    I have a library to connect to a remote server through a socket. Server and client library are developed with QT 4.1. I want to develop a web page that would call the client library through XPCOM under Firefox.

    How would you go about this?


    So far, I have wrapped the library's functions with the Gecko SDK under XPCOM, but it seems like the signal/slots mecanisms that are implemented in the library functions only partly. In particular, I have a slot connected to the "connected" signal of a qtcpsocket that is never activated.
    (Other functions that are called directly function properly. I have also a "normal" QT gui that wraps the exact same functions and works perfectly...)

    Any clues?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Wrap a static QT library inside an XPCOM component ?

    Do you create QCoreApplication or QApplication instance? Do you have a running Qt event loop?

  3. #3
    Join Date
    Aug 2010
    Location
    India
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Maemo/MeeGo

    Default XPCOM with Qt

    Hi ,

    I have created a xul application which calls Qt code with the help of XPCOM wrapper.
    It enters the Qt code but whenever we try to work with Qt elements it crashes.

    Like QString str ; works
    but str.toInt () does not work.

    Could you please help me out in this.
    Thanks a lot

    Arifa

Similar Threads

  1. I got two problems when I used static compiled library of QT4
    By qintm in forum Installation and Deployment
    Replies: 8
    Last Post: 20th April 2006, 08:52

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.