Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Converting QDateTimeEdit to QDateTime

Converting QDateTimeEdit to QDateTime

Scheduled Pinned Locked Moved Solved Qt for Python
4 Posts 2 Posters 484 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.
  • B Offline
    B Offline
    BlueBreezy
    wrote on last edited by
    #1

    So I am working on some code using PySide2 and I am trying to convert the data inputted using QDateTimeEdit to QDateTime so I can access the functions in QDateTime such as addYears and addSecs, so how do I go about this?

    jsulmJ 1 Reply Last reply
    0
    • B BlueBreezy

      So I am working on some code using PySide2 and I am trying to convert the data inputted using QDateTimeEdit to QDateTime so I can access the functions in QDateTime such as addYears and addSecs, so how do I go about this?

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

      @BlueBreezy QDateTimeEdit already gives you QDateTime: https://doc.qt.io/qt-5/qdatetimeedit.html#dateTime-prop

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

      1 Reply Last reply
      2
      • B Offline
        B Offline
        BlueBreezy
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • B Offline
          B Offline
          BlueBreezy
          wrote on last edited by
          #4

          I solved it thanks!

          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