[Qt-interest] combining QDialog and QFrame

Andreas Pakulat apaku at gmx.de
Fri Jul 31 16:42:32 CEST 2009


On 31.07.09 15:47:57, Markus Franke wrote:
> Dear all,
> 
> 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?)

Thats not possible. What exactly do you mean with "border frame", do you
want the frame inside the window-decorations or around the
window-decorations? In the case of the former, you can simply use a QFrame
as the top-level child for QDialog and place all other widgets inside that
QFrame. In the latter case you'll need to look at platform-specific
solutions as Qt only paints on its own widgets, not on the
window-decoration and certainly not around the decoration.

Andreas
 
-- 
Today is what happened to yesterday.



More information about the Qt-interest-old mailing list