Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to map a local (PC-HDD) folder to QT simulator
QtWS25 Last Chance

How to map a local (PC-HDD) folder to QT simulator

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 3.1k Views
  • 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.
  • E Offline
    E Offline
    eugenand
    wrote on last edited by
    #1

    Hi,
    I test an application on Nokia X6 which needs to read/write some files in e:\data\xyz folder. I want to map a local folder (like C:\project\test cache) to the Qt simulator "E" storage that I created inside the simulator. Is this possible? If not, is there a standard folder somewhere inside "NokiaSDK" or "C:\Documents and Settings" (Win32) which I can use to copy some files to for later use inside my app?

    thanks,
    eugen

    1 Reply Last reply
    0
    • O Offline
      O Offline
      owolff
      wrote on last edited by
      #2

      Hi,
      applications compiled for the Qt Simulator can access the file system like every normal desktop Qt application, so you basically don't have to do any mapping. Just use the path to the files directly to access them from the application running in the Simulator.

      Olli

      1 Reply Last reply
      0
      • E Offline
        E Offline
        eugenand
        wrote on last edited by
        #3

        Hi,
        I know this but it happens X6 to have the mass storage as "E" and my PC to have only "C" and "D" available. At least I would need something like:

        #ifdef SIMULATOR_ON
        #define CACHE_PATH "c:\projects\xyz"
        #else
        #define CACHE_PATH "e:\data\xyz"
        #endif

        I was not able to discover any simulator related define so far.
        I expected the simulator to have a button near the Storage|Add button to allow mapping a folder for the newly created storage. Maybe this will be implemented in the future. It is very annoying to comment/uncomment a line of code when switching from simulator to device.

        thanks,
        eugen

        1 Reply Last reply
        0
        • O Offline
          O Offline
          owolff
          wrote on last edited by
          #4

          The define for the Simulator is Q_WS_SIMULATOR or QT_SIMULATOR :)

          1 Reply Last reply
          0
          • E Offline
            E Offline
            eugenand
            wrote on last edited by
            #5

            Ohhh, how stupid I am!!! :-(

            thanks a lot,
            eugen

            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