[Qt-interest] Creating dialogs with "round corners"
Markus Franke
markus.franke at informatik.tu-chemnitz.de
Fri Feb 13 09:51:55 CET 2009
Dear QT Developers/Users,
in my embedded QT application I would like to use dialogs (i.e. owning
layouts, buttons, ...). Furthermore, these dialogs should have "round
corners" (sorry for the term). So far I am using QLabels for the
dialogs and stylesheets to obtain the "round corners".
First of all: Is this the right way to do in Qt?
I know that I should maybe use QDialog for my dialog windows but so
far I didn't find a way to style a QDialog with "round corners".
Furthermore, now I have problems when I want to apply a layout to my
dialog windows (which are derived from QLabel). The problem is that
the size of the QLabel doesn't adapt to the size of the layout. This
happens if my QLabel has a parent widget. If it doesn't have a parent
widget (i.e. parent widget == 0), that means the QLabel is a window by
itself, I am not able to obtain the round corners again.
If something is unclear or you need some more clarification on this,
please feel free to ask.
Thanks for help and with best regards,
Markus Franke
More information about the Qt-interest-old
mailing list