Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. how to change calendar using qt?
Forum Updated to NodeBB v4.3 + New Features

how to change calendar using qt?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 3 Posters 774 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.
  • R Offline
    R Offline
    Rosimar
    wrote on last edited by
    #1

    Hello, I want to know how to change the day, month, year and time using the qt tools?

    J.HilkJ 1 Reply Last reply
    0
    • R Rosimar

      Hello, I want to know how to change the day, month, year and time using the qt tools?

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      Hi @Rosimar

      you need to be a bit more precise, Day Month and Year of what? of a QDate object?


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      3
      • R Offline
        R Offline
        Rosimar
        wrote on last edited by
        #3

        I am developing a software for an equipment that uses embedded linux wanted to know how I can do to change the system time if it is possible to do this through qt!
        And which tool should I use?

        ODБOïO J.HilkJ 2 Replies Last reply
        0
        • R Rosimar

          I am developing a software for an equipment that uses embedded linux wanted to know how I can do to change the system time if it is possible to do this through qt!
          And which tool should I use?

          ODБOïO Offline
          ODБOïO Offline
          ODБOï
          wrote on last edited by
          #4

          @Rosimar
          you can do it from command line

          Use QProcess to run it from your app

          1 Reply Last reply
          0
          • R Rosimar

            I am developing a software for an equipment that uses embedded linux wanted to know how I can do to change the system time if it is possible to do this through qt!
            And which tool should I use?

            J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by
            #5

            @Rosimar
            if your qt application has the appropriated rights, you can set the date and time on your linux device via

            settimeofday()

            like any other c++ based program ;-)

            There's no explicit Qt-api for this.


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            1 Reply Last reply
            2
            • R Offline
              R Offline
              Rosimar
              wrote on last edited by
              #6

              Thanks for the tips I will research on!

              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