Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. New to Qt, question about code converstion
Qt 6.11 is out! See what's new in the release blog

New to Qt, question about code converstion

Scheduled Pinned Locked Moved C++ Gurus
2 Posts 2 Posters 2.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    qdazed
    wrote on last edited by
    #1

    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* @shell("cmd.exe")@ in Qt?

    *Upon a button click this code starts command prompt.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Check out "QProcess":http://developer.qt.nokia.com/doc/qt-4.7/qprocess.html 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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved