Results 1 to 5 of 5

Thread: Qt5.7.1/C++ - QProcess, stop terminal briefly flashing

  1. #1
    Join Date
    Oct 2006
    Posts
    105
    Thanks
    13
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Qt5.7.1/C++ - QProcess, stop terminal briefly flashing

    Hello,

    Windows 10.

    Running QProcess, how to stop the terminal briefly flashing in the background?
    Qt Code:
    1. process->start("cmd.exe", QStringList() << "/C" << "label j:www1000");
    To copy to clipboard, switch view to plain text mode 

    Thanks.

    Regards

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt5.7.1/C++ - QProcess, stop terminal briefly flashing

    Why You don't do this like :
    Qt Code:
    1. process->start("label ", QStringList() << "j:www1000");
    To copy to clipboard, switch view to plain text mode 
    For what You use cmd.exe ?

  3. #3
    Join Date
    Oct 2006
    Posts
    105
    Thanks
    13
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt5.7.1/C++ - QProcess, stop terminal briefly flashing

    Hello Lesiok,

    Qt Code:
    1. process->start("label ", QStringList() << "j:www1000");
    To copy to clipboard, switch view to plain text mode 
    This doesn't work, it changes the label on drive 'H', not drive 'J' as I want.

    Regards

  4. #4
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt5.7.1/C++ - QProcess, stop terminal briefly flashing

    Then solve the problem of bad drive and do not try to work around it.

  5. #5
    Join Date
    Oct 2006
    Posts
    105
    Thanks
    13
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt5.7.1/C++ - QProcess, stop terminal briefly flashing

    Hello Lesiok,

    There is nothing wrong with my drives, I've run checks.
    Qt Code:
    1. process->start("label", QStringList() << "j:www1000");
    To copy to clipboard, switch view to plain text mode 
    Note: No space after label, now works ok.
    Thanks for your help.

    Regards

Similar Threads

  1. Replies: 2
    Last Post: 7th February 2016, 08:57
  2. Qt5/C++ - QProcess, capture terminal data
    By jimbo in forum Qt Programming
    Replies: 4
    Last Post: 1st January 2016, 14:03
  3. Replies: 2
    Last Post: 3rd February 2011, 15:48
  4. Opening A Terminal using QProcess
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 1
    Last Post: 3rd February 2011, 14:51
  5. how to stop QProcess in app.
    By manmohan in forum Newbie
    Replies: 5
    Last Post: 6th October 2010, 07:10

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.