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. Importing files from digital camera
Forum Updated to NodeBB v4.3 + New Features

Importing files from digital camera

Scheduled Pinned Locked Moved General and Desktop
9 Posts 3 Posters 2.0k 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.
  • R Offline
    R Offline
    ringardsss
    wrote on last edited by
    #1

    Hi guys
    i'm trying to write a program that import pictures from digital camera
    i don't have any idee how to do this
    i'am on windows 7 and i don't have linux on my machine to download sources of gwenview to see how they do
    thanks for your responses
    and sorry for my englilsh :)

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qxoz
      wrote on last edited by
      #2

      How your camera detected on system? As removable drive?
      If yes you can browse it with "QFileSystemModel":http://qt-project.org/doc/qt-5/QFileSystemModel.html .
      And probably "this":http://qt-project.org/doc/qt-4.8/widgets-imageviewer.html example might help too.

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qxoz
        wrote on last edited by
        #3

        By the way
        Welcome to DevNet :)

        1 Reply Last reply
        0
        • R Offline
          R Offline
          ringardsss
          wrote on last edited by
          #4

          Thanks qxsoz for your help
          yes it's reconized as removable device not like an usb storage.
          i will try with QFileSystemModel...
          thanks

          1 Reply Last reply
          0
          • R Offline
            R Offline
            ringardsss
            wrote on last edited by
            #5

            Hi Qxoz
            I taked a look to image viewer example and it's not able to load picture from the camera I think the path returned by the native file dialog window is invalid for Qt.

            QFileSystemModel is unable to see the camera when i set the root path on my computer :(

            the path in explorer to files is
            "Ordinateur\Canon EOS 400D DIGITAL\CF\DCIM\930CANON"
            Ordinateur is Computer.

            if any one have an idea..
            thanks

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi,

              If you set it literally like “Ordinateur\Canon EOS 400D DIGITAL\CF\DCIM\930CANON" then if won't work because you didn't escape the .

              But since you are using Qt, just use the unix notation i.e. /

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • R Offline
                R Offline
                ringardsss
                wrote on last edited by
                #7

                Hi SGaist
                thanks for your response
                but it's just the path that i copied from explorer to show it to Qxoz
                in QT i escaped it and tried the unix notation without results.
                and as i say the image viewer example can't resolve this path too.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Then It's one of these "short cut" path from Windows. You should rather give the full path starting at the root directory i.e. C:/path/to/Canone EOS...

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • Q Offline
                    Q Offline
                    qxoz
                    wrote on last edited by
                    #9

                    Hi ringardsss. Sorry for wrong advice.
                    Looks like it is a real problem and unfortunately there are no easy way for solve it for Windows 7.
                    "Windows 7 Portable Device Development Kits":http://blogs.msdn.com/b/wpdblog/archive/2009/09/11/windows-7-portable-device-development-kits.aspx

                    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