Chris K
Chris K

Reputation: 12357

Displaying a popup widget in QT over application border

Let's say that I have an application frame, and I want to show a popup QCalendarWidget over on the right side of the frame. Normally, QT will clip the edges of the QCalendarWidget, cutting it in half and not displaying the rest, as it would be over the right side border.

Is there a way to work around this limitation without resorting to implementing a QDialog?

I want the widget to be visible outside the bounds of it's container.

Upvotes: 0

Views: 1189

Answers (1)

Maxim Popravko
Maxim Popravko

Reputation: 4169

If you'd show your Calendar, let's say, after a button click, as QDateTimeEditor does, it's contents will not be clipped, cause it do not belong to frame. It will be just a widget, that shows in a dialog manner. And maybe you should even place it in QDialog, that is modal and provides some convenience methods, rather then simple QWidget.

Btw, why don't you want to use QDatetimeEditor?

Upvotes: 1

Related Questions