Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Italian
  4. Mese e Anno corrente
Forum Updated to NodeBB v4.3 + New Features

Mese e Anno corrente

Scheduled Pinned Locked Moved Unsolved Italian
3 Posts 2 Posters 833 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.
  • bonfanticonsultingB Offline
    bonfanticonsultingB Offline
    bonfanticonsulting
    wrote on last edited by bonfanticonsulting
    #1

    Buongiorno.

    Vorrei implementare, ma non son capace perché sto iniziando ora a usare QT e C++:

    • una casella "Text Browser" oppure un "Date Edit" dove viene proposta in automatico il mese corrente + 1 (praticamente il successivo al corrente);
    • e lo stesso per l'anno corrente:

    Come si implementa? cosi vedendolo scritto cerco di capire il costrutto. Dai libri e video che sto leggendo sembra tutto arabo :-( Perdonatemi ^__^

    Grazie,

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      Puoi usare:

      • QDate::currentDate() per ottenere la data di oggi
      • QDate::currentDate().addMonths(1) per la data tra un mese
      • QDate::currentDate().addYears(1) per la data tra un anno
      • .toString() per convertirlo in una stringa di testo

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      bonfanticonsultingB 1 Reply Last reply
      0
      • VRoninV VRonin

        Puoi usare:

        • QDate::currentDate() per ottenere la data di oggi
        • QDate::currentDate().addMonths(1) per la data tra un mese
        • QDate::currentDate().addYears(1) per la data tra un anno
        • .toString() per convertirlo in una stringa di testo
        bonfanticonsultingB Offline
        bonfanticonsultingB Offline
        bonfanticonsulting
        wrote on last edited by
        #3

        @VRonin Grazie 1000 per la gentile risposta.

        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