Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Strange QDateEdit behavior
Forum Updated to NodeBB v4.3 + New Features

Strange QDateEdit behavior

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 516 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.
  • N Offline
    N Offline
    NCDeveloper
    wrote on last edited by
    #1

    I have a QDateEdit with the calendarPopup enabled, inside a stacked widget. My app runs on a touchscreen device. When I touch on the dateEdit box, the calendar shows. When I touch outside of the area of the calendar, on a blank part of the stacked widget, it closes. When I touch again not near the dateEdit box, the calendar shows again.

    Every touch anywhere on the screen thereafter opens and closes the calendarPopup, clearly not desired operation.

    Why might it be acting this way, and is there anything I can try to change the behavior? I have tried changing focus policies without luck.

    jsulmJ 1 Reply Last reply
    0
    • N NCDeveloper

      I have a QDateEdit with the calendarPopup enabled, inside a stacked widget. My app runs on a touchscreen device. When I touch on the dateEdit box, the calendar shows. When I touch outside of the area of the calendar, on a blank part of the stacked widget, it closes. When I touch again not near the dateEdit box, the calendar shows again.

      Every touch anywhere on the screen thereafter opens and closes the calendarPopup, clearly not desired operation.

      Why might it be acting this way, and is there anything I can try to change the behavior? I have tried changing focus policies without luck.

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

      @NCDeveloper On what device is your app running? Do other apps (non Qt) run properly there?

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

      1 Reply Last reply
      0
      • N Offline
        N Offline
        NCDeveloper
        wrote on last edited by
        #3

        It's a proprietary device. This is the only app that runs on it.

        I should note that I have the same problem with QComboBox.

        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