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. Updating a config file for a plugin
Forum Updated to NodeBB v4.3 + New Features

Updating a config file for a plugin

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 761 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hello,

    I am creating a plugin on QGIS. I have 2 interfaces : in the first one, the user must select three entries to launch the second interface. As I want to save the three entries in a config file that would be loaded when launching the plugin, so that the user doesn't select the entries. I tried to create this file and to write in it but I have problems when updating one entry for example. My config file is very simple : one line for each entry, I have three lines.

    I want to have some ideas, a sample of how developing a config file for a plugin on QGIS.

    Thanks for your help.

    jsulmJ 1 Reply Last reply
    0
    • ? A Former User

      Hello,

      I am creating a plugin on QGIS. I have 2 interfaces : in the first one, the user must select three entries to launch the second interface. As I want to save the three entries in a config file that would be loaded when launching the plugin, so that the user doesn't select the entries. I tried to create this file and to write in it but I have problems when updating one entry for example. My config file is very simple : one line for each entry, I have three lines.

      I want to have some ideas, a sample of how developing a config file for a plugin on QGIS.

      Thanks for your help.

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

      @EJWA What about http://doc.qt.io/qt-5/qsettings.html ?

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

      1 Reply Last reply
      4
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        Thanks, this is a very good solution. It works for me .

        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