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. Can I hide any file using Qt
Forum Updated to NodeBB v4.3 + New Features

Can I hide any file using Qt

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 3.4k 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.
  • M Offline
    M Offline
    mprakash
    wrote on last edited by
    #1

    I mean is there any platform independent way of doing this using Qt api.

    1 Reply Last reply
    0
    • I Offline
      I Offline
      Immii
      wrote on last edited by
      #2

      Well Not really, actually file system is so different on every platform so it is really hard.
      Unfortunately there is No API in Qt which can do it for you,I am sorry.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dangelog
        wrote on last edited by
        #3

        What's "hide a file" supposed to mean exactly?

        Software Engineer
        KDAB (UK) Ltd., a KDAB Group company

        1 Reply Last reply
        0
        • F Offline
          F Offline
          fcrochik
          wrote on last edited by
          #4

          You can implement you own for the platforms you want to support. Change attributes on windows, rename files on linux, ...

          Certified Specialist & Qt Ambassador <a href="http://www.crochik.com">Maemo, Meego, Symbian, Playbook, RaspberryPi, Desktop... Qt everywhere!</a>

          1 Reply Last reply
          0
          • I Offline
            I Offline
            Immii
            wrote on last edited by
            #5

            You can have your own platform independent implementation using #ifdef after all Qt is all about #ifdef.
            But you will have to do it for every platform you want, and you need to know the native api of all those every platform to hide the file. Best of luck

            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