Results 1 to 3 of 3

Thread: Run program from console

  1. #1
    Join Date
    Nov 2011
    Posts
    1
    Qt products
    Qt3
    Platforms
    MacOS X

    Default Run program from console

    I have problem which run program from console.
    If i Click by mouse program all works fine
    If i run from cmd program by full path main program don’t realise make new form by



    this->stat = new statystyki();

    If I do that


    cd catalog

    and run from catalog program is works

    Thanks for help

  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: Run program from console

    How are we supposed to know why your code doesn't work? All you have told us is the a particular form doesn't appear or do what what you expected when the program is started with a random working directory. We could guess that its constructor is failing because it is assuming that a resource (e.g. a file) is in the current working directory and it isn't. It's only a guess because we have no idea what your statystyki class is doing.

  3. #3
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Run program from console

    time for my sig.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

Similar Threads

  1. running external console program by gui program
    By alireza.mixedreality in forum Qt Programming
    Replies: 4
    Last Post: 24th April 2010, 18:05
  2. [QProcess] Calling console program
    By bgarisn in forum Newbie
    Replies: 3
    Last Post: 25th February 2010, 15:11
  3. how to print a matrix to a console in GUI program
    By elflord in forum Qt Programming
    Replies: 2
    Last Post: 14th March 2009, 12:16
  4. QProcess start a console program
    By Shawn in forum Qt Programming
    Replies: 2
    Last Post: 9th November 2007, 12:38
  5. Console Program Problem
    By ball in forum Qt Programming
    Replies: 9
    Last Post: 28th May 2006, 09:05

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.