Results 1 to 4 of 4

Thread: QWidgets and processes

  1. #1
    Join Date
    May 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QWidgets and processes

    Does anybody now how I can draw 2 QWidget's (qpushbuttons, qwebviews, etc) on a parent qwidget, but this 2 widgets to run on different processes(and the parent on other process). It is possible ? The ideea is that if one qwidget crashes from a seg fault, to prevent all application crash.

    More exacly I need is something like in chromium(wich in not qt) where evrey tab, evrey plugin run on sepparate process. I don't now how I can display GUI elements running on different proceses.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: QWidgets and processes

    You have the logic all wrong.

    Your GUI runs in one thread, the main thread. Do not ever split a GUI in multiple threads
    The logic, dataprocessing, ... runs in another thread or process.
    You update your GUI by using events from your other threads or processes.
    If one thread or process "crashes", then only that part crashes and you update your GUI by deleting or hiding that part that handles that specific thread or process.

  3. #3
    Join Date
    May 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QWidgets and processes

    if one thread crashes with seg fault, the application(process) crashes - so this doesn't help me. I need an application compose from multiple processes (not threads).

  4. #4
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: QWidgets and processes

    I didn't say you need to use threads.
    I said you shouldn't split your GUI in several threads.

Similar Threads

  1. Replies: 2
    Last Post: 12th January 2010, 01:13
  2. Display from multiple processes in one GUI
    By abernat in forum Qt Programming
    Replies: 3
    Last Post: 17th September 2009, 21:08
  3. QSharedMemory in processes from different accounts
    By Ursa in forum Qt Programming
    Replies: 2
    Last Post: 19th March 2009, 10:50
  4. QProcess Bash in Event Filter (Multiple Processes)
    By Arsenic in forum Qt Programming
    Replies: 1
    Last Post: 8th November 2008, 09:42
  5. Enumerate processes using Qt
    By Ben.Hines in forum Qt Programming
    Replies: 5
    Last Post: 14th February 2006, 16:45

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.