Results 1 to 13 of 13

Thread: QProcess / system call not working under linux. Why?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Join Date
    Jan 2006
    Location
    N.B. Canada
    Posts
    47
    Thanked 8 Times in 7 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QProcess / system call not working under linux. Why?

    The wildcards are processed by dcmodify and work fine for the port of this command to windows.
    This is usually the case for windows ports of unix command line applications. Under unix, it is the shell that actually expands the wildcards. However under windows the command prompt does no such thing, so in the port they will usually implement this in the app themselves. Hence your QProcess works ok on windows but not on unix environment. I am not sure if this is the problem in this situation, but I have come across windows ports that do this. For example even qembed does it.

    Bojan
    Last edited by Bojan; 10th March 2006 at 22:57.
    The march of progress:
    C:
    printf("%10.2f", x);
    C++:
    cout << setw(10) << setprecision(2) << showpoint << x;
    Java:
    java.text.NumberFormat formatter = java.text.NumberFormat.getNumberInstance();
    formatter.setMinimumFractionDigits(2);
    formatter.setMaximumFractionDigits(2);
    String s = formatter.format(x);
    for (int i = s.length(); i < 10; i++) System.out.print(' ');
    System.out.print(s);

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
  •  
Qt is a trademark of The Qt Company.