[Qt-interest] Antwort: Re: combining QDialog and QFrame
Markus Franke
Franke.M at sebakmt.com
Mon Aug 3 09:23:03 CEST 2009
Bingo! That was exactly what I was looking for.
Thanks for help and with best regards,
Markus
Daniel Albuschat <d.albuschat at gmail.com> schrieb am 31.07.2009 17:10:51:
> 2009/7/31 Markus Franke <Franke.M at sebakmt.com>:
> >
> > I would like to create a QDialog surrounded by a border frame.
However,
> > QDialog does not derive from QFrame and the "border" stylesheet
doesn't work
> > for QDialog neither.
> > How can I achieve this? Do I have to create my own dialog derived from
> > QDialog and QFrame? (multiple inheritance?)
>
> Hi Markus,
>
> Simply add the QFrame as the only widget to the QDialog (you can use
> any layout you want for that, but probably want to set the margins to
> 0) and add all other widgets to that frame instead of the dialog.
>
> Daniel
> --
> eat(this); // delicious suicide
"Disclaimer: This message is intended only for the use of the individual or entity to
which it is addressed and may contain information which is privileged, confidential, proprietary,
or exempt from disclosure under applicable law. If you are not the intended recipient or the person
responsible for delivering the message to the intended recipient, you are strictly prohibited from
disclosing, distributing, copying, or in any way using this message. If you have received this
communication in error, please notify the sender and destroy and delete any copies you may have
received."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090803/d7dc8022/attachment.html
More information about the Qt-interest-old
mailing list