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. Updating dateEdit
Forum Updated to NodeBB v4.3 + New Features

Updating dateEdit

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 251 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.
  • L Offline
    L Offline
    LT-K101
    wrote on last edited by
    #1

    Hi,
    How can I set date value in database to a QdateEdit just like the way QcomboBox does? For example self.ui.comboBox_28.setCurrentText(data[10]) . set the 10th index value to the comboBox_28 when I run an update query. Thanks in advance.

    jsulmJ 1 Reply Last reply
    0
    • L LT-K101

      Hi,
      How can I set date value in database to a QdateEdit just like the way QcomboBox does? For example self.ui.comboBox_28.setCurrentText(data[10]) . set the 10th index value to the comboBox_28 when I run an update query. Thanks in advance.

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

      @LT-K101 Using setDate() https://doc.qt.io/qt-5/qdatetimeedit.html#date-prop

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

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved