October 28, 2011

qdazed qdazed
Lab Rat
1 posts

New to Qt, question about code converstion

 

Hello,

I’m new to Qt SDK and currently using VS2008.
I’m trying to convert one of my apps from VB to Qt. I have done some search and watched some tutorials but I’m still puzzled since Qt is a bit different than VS.
Anyway, is there a website, a code converter, or a reference on how to do this?
Example: what would be the equivalent of this VB code*

  1. shell("cmd.exe")
in Qt?

*Upon a button click this code starts command prompt.

1 reply

October 28, 2011

Tobias Hunger Tobias Hunger
Mad Scientist
3150 posts

Check out QProcess [developer.qt.nokia.com] to run arbitrary commands. Note that running external commands can be tricky when you try to do something on several platforms: The commands tend to have different names and different behaviors on all the different OSes out there.

 
  ‹‹ comparing doubles properly      Should QVector be able to hold one billion items? ››

You must log in to post a reply. Not a member yet? Register here!