Results 1 to 2 of 2

Thread: Running GThread and handling the Qt's event at the GCallBack.

  1. #1
    Join Date
    May 2010
    Posts
    100
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Running GThread and handling the Qt's event at the GCallBack.

    Hello Masters of Qt,

    After struglling lot with the problem,i have finally thought to put the question on thsi forum.

    I am developing a project which runs two applications,and both communicates using dbus. Client application is a main application and running in while(1).This uses Glib and libdbus.Inside while(1) it polls many other functions including Qt's GUI's Event queue.This application also runs GMainLoop inside a GThred,which is needed to tackle the Qt's signal directly with the Slots inside Main application.

    On,server side Qt is running. And performs GUI operations guided by main application . Communicates with the main using dbus and GLib.

    Now,when i run the whole software ,main applications runs only in while(1),and is able to poll the event-queue,but Qt's event is not able to invoke the GCallBack on client side.I think it gets stucked into a while(1),not able to poll other events.

    The same thing runs on PC,very well.But,when i try to run on ARM board,it is not able to h andle the GUI's events. can some one pls be able to guide me?

    Thanks to all developers.

  2. #2
    Join Date
    May 2010
    Posts
    100
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Running GThread and handling the Qt's event at the GCallBack.

    hello,

    can someonr please guide me on this problem pleaese?

    what can stops dbus from forwarding the Qt's signal to Glib's GCallBack(this is slot in qt's sense).

    i need to run g_main_loop_run() on Glib application,to get the signal. The Qt's signal is already connected with the Glibs GCallBack.

Similar Threads

  1. [PyQt4] Trouble with event handling
    By Dodle in forum Qt Programming
    Replies: 4
    Last Post: 5th May 2009, 05:45
  2. SplashScreen and Event handling???
    By Nithya in forum Qt Programming
    Replies: 4
    Last Post: 25th April 2008, 08:05
  3. event handling...
    By xyzt in forum Qt Programming
    Replies: 1
    Last Post: 25th March 2008, 08:16
  4. Event handling problem
    By Mel Seyle in forum Qt Programming
    Replies: 2
    Last Post: 23rd August 2007, 05:15
  5. QGraphicsView Handling Child Event
    By arjunasd in forum Qt Programming
    Replies: 1
    Last Post: 9th August 2007, 01:32

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.