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]QProcess against Linux
Forum Updated to NodeBB v4.3 + New Features

[Solved]QProcess against Linux

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

    -Hi I got a few questions about how to change the settings in my debian dist.

    I'm not sure how to do it but I need to change these settings from my QT program

    change Ntp server-
    change timezone
    change Daylight saving
    change timeformat 24 h 0r 12 h

    And if i want to do this stuff should I use QProcess or system() calls.
    I could get an answer from qprocess but I don't know how to get it from the system call.

    Anyone who could get me a tips about great forums about the linux and the commands

    Yes I could save it to a file but I don't want to do that.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fluca1978
      wrote on last edited by
      #2

      I would go for a QProcess that contains the right commands for the deploy environment, so that you application could even switch among different QProcess implementations to get rid of other environments.
      The most complex task is changing the NFS server, that requires to edit a text file. The other tasks are one line commands. It will be interesting to know why you need to do such a job, considering that there are already great tools to manage linux settings. Moreover I suggest to get your feet wet within Linux.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        toho71
        wrote on last edited by
        #3

        Yes thank you for your tips.
        I got some configure commands but if I want to for ex set a new timezone I don't really sure how to do it with the dpkg-reconfigure tzdata.

        My prj is a emmbedded sys where the user should be able to change this settings among some others as systime and date etc etc.

        So I need to get wet with linux but I'm lazy so if someone could show a simple solution I would be happy.

        I learn Linux for the moment but it's a time issue in the sys development too.

        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