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. [SOLVED] New Folders
Qt 6.11 is out! See what's new in the release blog

[SOLVED] New Folders

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.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.
  • M Offline
    M Offline
    MichelSM
    wrote on last edited by
    #1

    Does anyone know how can use Qt to make new folders?
    with QFile is possible for an address and he hesitates not create folders?
    have any permission to do so? or another command?

    thank you
    many questions noobs hehe

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

      Hi,

      don't worry, we were all noobs at some point ;)

      There are 2 methods that I think you are after:

      • "QDir::mkdir()":http://qt-project.org/doc/qt-5.1/qtcore/qdir.html#mkdir
      • "QDir::mkpath()":http://qt-project.org/doc/qt-5.1/qtcore/qdir.html#mkpath

      I think the description in the documentation is enough, so I won't add any explanation on my own. If anything is still unclear, please ask.

      (Z(:^

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MichelSM
        wrote on last edited by
        #3

        thank you,
        this worked
        :)

        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