Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Run setting : specifying run commands to my qt application not working correctly
Forum Updated to NodeBB v4.3 + New Features

Qt Run setting : specifying run commands to my qt application not working correctly

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 221 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.
  • Maarouf Med MahdiM Offline
    Maarouf Med MahdiM Offline
    Maarouf Med Mahdi
    wrote on last edited by Maarouf Med Mahdi
    #1
    This post is deleted!
    JonBJ 1 Reply Last reply
    0
    • Maarouf Med MahdiM Maarouf Med Mahdi

      This post is deleted!

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Maarouf-Med-Mahdi
      I can't work this out, but are you sure *argv + i is right? Shouldn't it be *(argv + i)? It would be clearer IMHO if you wrote argv[i]!

      1 Reply Last reply
      1
      • Maarouf Med MahdiM Offline
        Maarouf Med MahdiM Offline
        Maarouf Med Mahdi
        wrote on last edited by Maarouf Med Mahdi
        #3

        @JonB omg, it is a stupid mistake , thank you man , its working now :)))))))
        someting i make a confuse between *argv and **argv

        JonBJ 1 Reply Last reply
        0
        • Maarouf Med MahdiM Maarouf Med Mahdi

          @JonB omg, it is a stupid mistake , thank you man , its working now :)))))))
          someting i make a confuse between *argv and **argv

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @Maarouf-Med-Mahdi
          :)
          That's why the argv[i] syntax is probably less confusing.

          With your original *argv + i, which binds as (*argv) + i, I believe you will find you don't quite get the path to to your executable back. What you actually get is always the executable (*argv == argv[0], which is the program name it was invoked under), + i characters on from the first character. So in your case it skipped the very first character of the exe path :)

          1 Reply Last reply
          1

          • Login

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