Results 1 to 3 of 3

Thread: Non Qt GUI application using Qt GUI DLL library

  1. #1
    Join Date
    Jul 2010
    Posts
    19
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Non Qt GUI application using Qt GUI DLL library

    We want to purchase QT License – Desktop – Multi OS. We have started to develop with the open SDK and came across a very crucial problem.

    One of our components is Qt DLL which expose GUI dialogs. If we call it from other Qt applications, or even none Qt console application everything is fine and the DLL is able to show its dialogs. But, when we try to load dialogs from another none-Qt GUI application, Java application for instance, the application is not able to continue, no dialog is showed and we get the following error at the command line window we have run the application from: “QPixmap: It is not safe to use pixmaps outside the GUI thread”.

    We are testing it on Linux Ubuntu. All we need is to be able to show dialogs from Qt DLL being loaded by none-Qt GUI application.

    Thanks,
    Barak

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Non Qt GUI application using Qt GUI DLL library

    I assume that you need to have a Qt event loop running for any of the Qt GUI stuff to work. I'm not sure how you arrange this but it might give you some idea where to look.

  3. #3
    Join Date
    Jul 2010
    Posts
    19
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Non Qt GUI application using Qt GUI DLL library

    Thanks.

    But how do I implement the Qt event loop with out getting this error message:"QPixmap: It is not safe to use pixmaps outside the GUI thread”. ?
    All I need is a DLL the generates GUI and is called from a non-Qt GUI application.

Similar Threads

  1. Replies: 0
    Last Post: 22nd February 2010, 16:36
  2. Adding a OAuth library to a QT application
    By srohit24 in forum Qt Programming
    Replies: 1
    Last Post: 14th April 2009, 08:33
  3. Loading library from application
    By mourad in forum Installation and Deployment
    Replies: 0
    Last Post: 2nd April 2008, 15:10
  4. Replies: 2
    Last Post: 22nd February 2007, 08:08

Tags for this Thread

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.