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. Directories
Qt 6.11 is out! See what's new in the release blog

Directories

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.6k 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.
  • S Offline
    S Offline
    S.ANAND
    wrote on last edited by
    #1

    Hello every One Please Solve My Wired Problem ,

    I Have A Directory in which i had file x.exe which requires sdl.dll , sdl_image.dll so i have written qt code for opening that like below

    QProcess process or (QProcess *process=new QProcess )

    process.start("Go/x.exe");

    though the x.exe and sdl.dll files are in same directory but it is prompting that sdl.dll not found so why the error is occured if i open x.exe directly it if fine but using qt it is giving error

    Please Help

    Thank You

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Serenity
      wrote on last edited by
      #2

      You start your application one directory below your executable.
      So, he is looking for the dlls in the directory below (because of "Go/x.exe"), so in "Go/.../".

      Put the dlls next to your qt program directory

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        Or change the working dir for QProcess.

        (Z(:^

        1 Reply Last reply
        0
        • S Offline
          S Offline
          S.ANAND
          wrote on last edited by
          #4

          Thanks for the rplies it helped me thanq

          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