Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. how to redraw certain items of a Calendar or just the selected one?
Forum Updated to NodeBB v4.3 + New Features

how to redraw certain items of a Calendar or just the selected one?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 1 Posters 294 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.
  • mbruelM Offline
    mbruelM Offline
    mbruel
    wrote on last edited by
    #1

    Hi,
    I'm using the old Qt Quick Controls 1 - Calendar Example
    I've added a listener on long press that opens a Menu where several action should trigger a refresh of the selected date.
    How can I manage that? I've access to calendar.selectedDate but how how to force the redraw of only this delegate? Any tricks to achieve it?

    I've seen there is the non deprecated CalendarModel in Qt.labs.calendar that is using MonthGrid as delegate but I guess I'd have the same issue...
    I could connect to MonthGrid::clicked(date date) but then how to force the repaint of the corresponding delegate only?

    1 Reply Last reply
    0
    • mbruelM Offline
      mbruelM Offline
      mbruel
      wrote on last edited by
      #2

      well I suppose it is not possible...
      I'm redrawing all the items (delegates).
      As an update() is not doing the job, I'm using a "fake" binding like suggested here.

      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