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. Is it possible to pass a file url instead of local file in QSettings?
Forum Updated to NodeBB v4.3 + New Features

Is it possible to pass a file url instead of local file in QSettings?

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 152 Views 2 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.
  • LinArcXL Offline
    LinArcXL Offline
    LinArcX
    wrote on last edited by
    #1

    Hi. imagine i want to open an ini file that located in a server:

    QSettings foo("http://www.foo.com/settings.ini", QSettings::IniFormat);

    Why above code doesn't work? Seems it can't fetch that file.

    jsulmJ 1 Reply Last reply
    0
    • LinArcXL LinArcX

      Hi. imagine i want to open an ini file that located in a server:

      QSettings foo("http://www.foo.com/settings.ini", QSettings::IniFormat);

      Why above code doesn't work? Seems it can't fetch that file.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @LinArcX said in Is it possible to pass a file url instead of local file in QSettings?:

      Why above code doesn't work?

      Why should it? This would mean to download the file via HTTP protocol which QSettings does not support as far as I know. Why would you store ini files on the Internet?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved