Hi everyone!!!

First, i have to say that i don't know if i have choosen the rigth title for this post.

Well, my "problem" is the next one:


i got a window to edit some tables from my database. I use a QSqlTableModel and a QTableView to show it. There is some tables that have a date field in them. And what i want to achieve is that the date can be entered with a widget tha pops up when the users click it (like happens in the web).

My idea is to insert a button into that field in every record or row in my Table. There is so many calendars done with javascript. and i gat a few of them. I thought maybe i could use java script to achieve this.

I hope that some body in this forum can help me. Maybe some body made it, may be some body made it with another approach. but i need some ideas or suggestions.

in conlusion, i got this:




and y want to include some thing like this:



Any i dea will be appreciated!! :thumbsup: :thumbsup: :thumbsup:

im waiting for some answers. So many thanks in advance, sorry for my bad english.



In spanish:

poseo una ventana para editar tablas de mi base de datos. Existen algunas tablas que poseen un campo fecha. y lo que quiero lograr es que en lugar de que la fecha se introduzca manualmente (propenso a ser una fecha inválida), quiero crear un boton alli dentro de ese line edit o algún método similar que traiga un calendario emergente (de esos que vemos mucho en la web). Busque en internet y existen muchos calendarios ya implementados en JavaScript.

algo asi es lo que tengo:



y quiero ponerle algo como esto:



pensaba en usar un QCalendarWidget y estarÃ*a bien..si no fuera por el hecho de que realmente necesito que se vea flotante como el de la web y no en una ventana a parte. Por eso pensé en el JavaScript.

Bueno al final, si alguien tiene idea de cómo hacerlo o conoce otro método para lograrlo por favor, agradeceré su respuesta aquÃ*.

Muchas gracias de antemano.

:thumbsup: :thumbsup: :thumbsup: