Results 1 to 6 of 6

Thread: Enumerate processes using Qt

  1. #1
    Join Date
    Feb 2006
    Posts
    21
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Windows

    Default Enumerate processes using Qt

    Does anyone know how to enumerate the processes that are running on a system using Qt? I thought that QProcess might have some statics to do this, but couldn't find anything.

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: Enumerate processes using Qt

    at what system?
    a life without programming is like an empty bottle

  3. #3
    Join Date
    Feb 2006
    Posts
    21
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Windows

    Default Re: Enumerate processes using Qt

    I was hoping for a cross-platform way to do this. Since Qt provides a cross-platform representation of a process with the QProcess class, I thought Qt might also provide a cross-platform way to enumerate QProcesses.

  4. #4
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: Enumerate processes using Qt

    QProcess use for launch external process. And he havent system information about all runing process, free memory,etc..
    a life without programming is like an empty bottle

  5. #5
    Join Date
    Feb 2006
    Posts
    21
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Windows

    Default Re: Enumerate processes using Qt

    That's what I thought. Thanks.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Enumerate processes using Qt

    It would be hard to get such info in a portable way, because systems often deny access to structures which contain such info, thus making such calls unreliable. For example most unices use /proc filesystem for that, but often /proc is protected from reading by non-superusers. Other systems may have their own mechanisms for that and different security schemas.

Similar Threads

  1. dir entries enumerate problem
    By nicolas1 in forum Qt Programming
    Replies: 3
    Last Post: 5th December 2008, 15:19
  2. QProcess Bash in Event Filter (Multiple Processes)
    By Arsenic in forum Qt Programming
    Replies: 1
    Last Post: 8th November 2008, 09:42
  3. Enumerate
    By giusepped in forum Qt Programming
    Replies: 3
    Last Post: 4th November 2008, 10:23
  4. Replies: 1
    Last Post: 6th March 2007, 16:27

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.