Maybe I should give more details about I wanna do, so here I will explain better

suppose you have a window that only contains a QCalendarWidget item, and no more Qt components, by default the selected day is the current date, so my idea is giving to the users the possibility of create new tasks for a given day (action triggered by double click on a day), modify or delete a task (triggering on a day a context menu with this actions), and paint the cells of the days that have a programmed task, just for the user knowledge,

for example, if the selected day is Jun 19, and I have a task programed in Jun 25 and I want to edit this task, I have to make a left click on Jun 25 for selecting this day, and then make right click for trigger the context menu on Jun 25, for that reason I wanna simulate a left click, to select and later trigger a context menu making just a right click on a day that was not selected