Hello,

After looking at plugin-clock which uses QLayout but works correctly. Some 
settings to QLayout should be added to avoid this issue. This could be a 
workaround currently.

    QVBoxLayout *layout = new QVBoxLayout(mMainWidget);
    layout->addWidget(mAcLabel);

// workaround start
    layout->setContentsMargins(0, 0, 0, 0);       
    layout->setSpacing(0);
    layout->addWidget(mAcLabel, 0, Qt::AlignCenter);
// workaround end

    mMainWidget->setLayout(layout);

I will try to add this findings to the razor bug tracker.

Thanks,
Wayne

Date: Fri, 22 Nov 2013 09:14:30 +0000
Subject: Re: [Lxde-list] Layout management in lxqt-panel
From: adys...@gmail.com
To: chunweic...@outlook.com
CC: lxde-list@lists.sourceforge.net

This is a known issue on razor. There were no details though. Have a look at 
the razor bug tracker. 
On 22 Nov 2013 09:07, "Chen Wayne" <chunweic...@outlook.com> wrote:




Hello List,


I am trying to build a power plugin for lxqt-panel for showing battery and AC 
information, but met some problems:

The panel height would increase while loading my plugin. After removing my 
plugin, lxqt-panel's height return to original size.


I found this abnormal behavior is caused by QLayout which my plugin is using. 
After removing QLayout in my code, everything works smoothly, no size change on 
lxqt-panel. Some other plugins have the same problem, such as 
plugin-colorpicker and plugin-dom. They all use QLayout. 


Not sure if this was a known issue? My systems are Ubuntu 12.04 x86 and 
Archlinux x64.
I am new to QT and unfamiliar with QT layout management. Could anyone shed some 
light on this?


Wayne




                                          

------------------------------------------------------------------------------

Shape the Mobile Experience: Free Subscription

Software experts and developers: Be at the forefront of tech innovation.

Intel(R) Software Adrenaline delivers strategic insight and game-changing

conversations that shape the rapidly evolving mobile landscape. Sign up now.

http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________


Lxde-list mailing list

Lxde-list@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/lxde-list


                                          
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Lxde-list mailing list
Lxde-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to