Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Spanish
  4. programa trial
Qt 6.11 is out! See what's new in the release blog

programa trial

Scheduled Pinned Locked Moved Solved Spanish
6 Posts 3 Posters 2.2k 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.
  • lincolnL Offline
    lincolnL Offline
    lincoln
    wrote on last edited by
    #1

    buenas noches amigos, directo al grano como podría hacer un programa trial, ose que solo funcione un cierto tiempo o por unos días después de eso se desactive, solo por curiosidad como podría hacerlo, qui en el qt, cualquier opinión o idea sera bien venida, gracias de antemano.

    Solitary wolf

    1 Reply Last reply
    0
    • O Offline
      O Offline
      ollarch
      wrote on last edited by
      #2

      Utiliza QFileInfo sobre el fichero ejecutable. El metodo "lastModified()" te dará la fecha de creación del ejectuable. Ahora solo tienes que preguntar la fecha actual y mirar si ha pasado el tiempo deseado.

      1 Reply Last reply
      1
      • lincolnL Offline
        lincolnL Offline
        lincoln
        wrote on last edited by
        #3

        gracias!!

        Solitary wolf

        1 Reply Last reply
        0
        • O Offline
          O Offline
          ollarch
          wrote on last edited by ollarch
          #4

          Recuerda que "lasfModified()" es la fecha de la compilación del ejectuable.
          También te diré que hay maneras de modificar esta fecha tanto en Windows como en Linux y supongo que también en Mac.

          1 Reply Last reply
          0
          • mchoccacM Offline
            mchoccacM Offline
            mchoccac
            wrote on last edited by
            #5

            podrías usar un websevice para activar la aplicación.

            1 Reply Last reply
            0
            • lincolnL Offline
              lincolnL Offline
              lincoln
              wrote on last edited by
              #6

              gracias amigo, de lujo

              Solitary wolf

              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