Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QDateTimeEdit unexpected behaviour
Qt 6.11 is out! See what's new in the release blog

QDateTimeEdit unexpected behaviour

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.5k 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.
  • H Offline
    H Offline
    Heiko
    wrote on last edited by
    #1

    Hello,

    I have a problem with QDateTimeEdit:
    As soon as the method "setCalendarPopup(true);" is called the behaviour on mouse clicks changes:

    While clicking on the border of the widget the date or time increases (dependent, which part has focus).

    Does anybody know, on how to disable this feature/bug?!

    Thank you for your help

    Heiko

    1 Reply Last reply
    0
    • _ Offline
      _ Offline
      _rmn
      wrote on last edited by
      #2

      I think call setButtonSymbols(QAbstractSpinBox::NoButtons) could help you

      1 Reply Last reply
      0
      • M Offline
        M Offline
        messi
        wrote on last edited by
        #3

        Hi Heiko,
        please always add to your message the information which version of Qt do you use and on which platform you encounter this problem.

        1 Reply Last reply
        0
        • H Offline
          H Offline
          Heiko
          wrote on last edited by
          #4

          Thank you for your reply.

          • rmn: This helps, but then part of the date gets covered by the "CalendarPopup-Button" as obviousely the SpinBoxButtons a layer lower are missing. Looks a bit like a work around.

          • messi: I am using QT 4.8.2 on Windows.

          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