Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, August 2006
frameless, tabbed windows stucked on a side of the working area ?


Message 1 in thread

Hi all,

I need to set up some "tabbed tool space", as in the latest Adobe InDesign :

- a "tabbed space" is stucked on a side of the workspace. 
On the Mac, it is stucked on the side of the screen itself. On Windows &
Linux, it is stucked on the side of the main window of the application.

- a "tabbed space" is made of various QWidget. A tab bar is provided to
switch between the various QWidget, and to close/open the "tabbed space"

- unlike a docking area, a "tabbed space" does not occupy the whole side on
which it is placed

- the tab bar is transparent ; one can only see the tab buttons themselves.

The enclosed picture shows the "tabbed space" of Adobe InDesign on the Mac. 
On Windows & Linux, the "tabbed space" should be placed within the
QWorskpace.


How should I process to fulfill these requirements with Qt ?


I've tried quite a lot, without success.

The best I have done on Linux is : creating a QWidget as a child of the
QWorkspace :
     MyWidget * child = new MyWidget;
     child->setParent(workspace);

This create a stucked and frameless window in the workspace.
Though, other windows added to the QWorkspace (through
"workspace->addWindow") are drawn above my "tabbed space" widget. I didn' t
succeed in having an "AlwaysOnTop" "tabbed space" widget.
 
Here are more detailed questions :

- I tried to create a frameless window (or a window without the blue system
menu bar) in a QWorkspace (with the QtFlags) but it didn't worked. Is it
possible to create such a window ?

- Is it possible to have a transparent QMainWindow ? I tried to redefine the
QPalette 
             QPalette p = palette();
             p.setBrush(QPalette::Window, QColor(255, 255, 255, 0));
             setPalette(p);
It worked for the window in the QWorkspace but it didn't for a QMainWindow
(weird refresh issues) ...
 
- Does anyone knows an InDesign-like open-source application made with Qt ?
 
 
Thanks in advance.

Attachment: capture.jpg
Description: JPEG image


Message 2 in thread

HI  

> -----Original Message-----
> From: Nicolas Castagne [mailto:castagne@xxxxxxx] 
> Sent: Wednesday, August 16, 2006 5:12 PM
> To: qt-interest@xxxxxxxxxxxxx
> Subject: frameless, tabbed windows stucked on a side of the 
> working area ?
> 
> Hi all,
> 
> I need to set up some "tabbed tool space", as in the latest 
> Adobe InDesign :
> 
> - a "tabbed space" is stucked on a side of the workspace. 
> On the Mac, it is stucked on the side of the screen itself. 
> On Windows & Linux, it is stucked on the side of the main 
> window of the application.
> 
> - a "tabbed space" is made of various QWidget. A tab bar is 
> provided to switch between the various QWidget, and to 
> close/open the "tabbed space"
> 
> - unlike a docking area, a "tabbed space" does not occupy the 
> whole side on which it is placed
> 
> - the tab bar is transparent ; one can only see the tab 
> buttons themselves.
> 
> The enclosed picture shows the "tabbed space" of Adobe 
> InDesign on the Mac. 
> On Windows & Linux, the "tabbed space" should be placed 
> within the QWorskpace.
> 
> 
> How should I process to fulfill these requirements with Qt ?
> 

Try QWidget::raise() and lower() to replicate this behavior. I doubt
QTabBar will do the trick

Cheers,
Ben

--
 [ signature omitted ]