[Qt-interest] managing client windows in embedded Qt
linux newbie
linux.newbie79 at gmail.com
Wed Mar 24 04:37:20 CET 2010
I subclassed QDockWidget and in its layout I set my own menubar. This is
working. But there is a vertical space between menubar and widget. How to
remove this?
Below is the code.
DockWidget::DockWidget(QWidget *parent)
:QDockWidget(parent)
{
Qt::WindowFlags flags = this->windowFlags();
flags |= Qt::FramelessWindowHint;
this->setWindowFlags(flags);
this->setFeatures(QDockWidget::NoDockWidgetFeatures);
this->setFloating(true);
this->layout()->setMenuBar(&menuBar);
}
On Tue, Mar 23, 2010 at 8:05 PM, Jeroen De Wachter <
jeroen.dewachter at barco.com> wrote:
> Hi,
>
> We're doing something similar. We have a statusbar at the top of our screen
> and another bar at the bottom.
>
> We do this using one process though.
> The server application just shows the GUI and that's that. Extra windows
> (just widgets without a parent) may appear, but they are always created in
> the same process.
>
> You could try creating a class based on QDesktopWidget though and see if
> that fits your needs.
>
> Kind regards,
>
> Jeroen
>
> linux newbie wrote:
>
>> Hi,
>> I am running Qt 4.6.2 for embedded devices.
>> I have 3 seperate Qt client applications running on my system. On
>> pressing certain key combination, I need to bring these individual client
>> windows on top of the screen.
>> *For this I did the following:*
>> * In my server application, I am catching the windowEvent. So when the
>> client applications are created, the server receives the QWSWindow object
>> and I add this to list. Also this client application is set to "hide"
>> * EventFilter is installed in server application, so on certain key
>> combinations, desired client window is brought on top of screen( using
>> "show").
>> The above mentioned steps are working. Please let me know if this is
>> proper way to do this.
>> Now, I want to set the geomentry of client window from my server
>> application. The reason is that I want to run title bar (docked widget with
>> battery/network status) on the server application, and individual client
>> windows occupy the remaining screen space. Any suggestions please.
>> Thanks
>> ------------------------------------------------------------------------
>>
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100324/026af2b0/attachment.html
More information about the Qt-interest-old
mailing list