Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-02

Lazarus IDE + Qt annoyances

35 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I was told to give feedback on my usage of LCL-Qt, so here goes. I simply recompiled Lazarus IDE with LCL-Qt.

I downloaded and used bin-qt4pas-V1.72_Qt4.5.2.tar.gz for the qt4intf library. Using Ubuntu 9.04 (32-bit) and Lazarus 0.9.29 (svn updated from 2010-02-05).

* Source Editor window keeps jumping. It jumps to the top left corner of the screen after opening every project.

* Toolbar buttons with down arrow for dropdown menu. The down arrow is not drawn. See attached screenshot.

* Treeview component doesn't point the + symbol to indicate that the node can be expanded. It draws an empty rectangle. See attached screenshot.

I'll continue using it for the coming week and report further progress. At least the edit cursor issue (always painted it as black) is now fixed.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys

* IDE now doesn't detect when a file is changed by an external program. I don't get prompted by the IDE to reload the file. To make sure this is not a general IDE issue, I recompiled my IDE with GTK2 (same revision as I used for IDE+Qt4 widgetset). Using the IDE+GTK2, the IDE detects the file changed and prompts to reload it. So this is a issue specific to IDE+Qt widgetset.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email

zeljko
to Graeme Geldenhuys: I was told to give feedback on my usage of LCL-Qt, so here goes. I simply recompiled…
Graeme Geldenhuys wrote 8 lines
Hi, I was told to give feedback on my usage of LCL-Qt, so here goes. I simply recompiled Lazarus IDE with LCL-Qt. I downloaded and used bin-qt4pas-V1.72_Qt4.5.2.tar.gz for the qt4intf library. Using Ubuntu 9.04 (32-bit) and Lazarus 0.9.29 (svn updated from 2010-02-05).

ok, but what's qt version on that ubuntu ? I suppose 4.5.0 ... which is pretty buggy.

* Source Editor window keeps jumping. It jumps to the top left corner of the screen after opening every project.

Never seen such problem , using laz everyday, tested on all fedoras and there's no "jumping"

* Toolbar buttons with down arrow for dropdown menu. The down arrow is not drawn. See attached screenshot.

no screenshoot, but also I don't have such arrow on dropdown menu , so must recompile into gtk2 to see what have to be there :)

* Treeview component doesn't point the + symbol to indicate that the node can be expanded. It draws an empty rectangle. See attached screenshot.

some themes does not draw + symbol on linux (eg. windows theme), dunno why, problem is inside qt probably (QStylePainter), I'm using plastique with kde-3.5 and there everything looks ok, also with oxygen theme it looks correct.

Where are attachments ?

I'll continue using it for the coming week and report further progress. At least the edit cursor issue (always painted it as black) is now fixed.

Thanks.

Reply by email

Graeme Geldenhuys
to zeljko
zeljko wrote
ok, but what's qt version on that ubuntu ? I suppose 4.5.0 ... which is pretty buggy.

libqt-core 4.5.0-ubuntu4.3

That's Ubuntu 9.04 with all latest OS updates from Ubuntu.

no screenshoot, but also I don't have such arrow on dropdown menu , so must recompile into gtk2 to see what have to be there :)

Sorry, I forgot the screenshots. I attached my IDE+GTK2 as well so you can compare the difference.

Also note that under LCL-GTK2 the toolbar button doesn't look like a button - it's flat. Under LCL-Qt it looks pretty ugly.

some themes does not draw + symbol on linux (eg. windows theme), dunno why, problem is inside qt probably (QStylePainter), I'm using plastique with

Nope, it's a LCL-Qt4 specific bug. I installed Qt UI Designer and the treeview nodes are painted correctly. Qt Designer used the theme (whatever it is) as Lazarus IDE with LCL-Qt did. See screenshot in separate message (previous attempt was over the 40KB message size).

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ -------------- next part -------------- A non-text attachment was scrubbed... Name: ide_qt4.png Type: image/png Size: 12339 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100206/dad68119/attachment-0002.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: ide_qtk2.png Type: image/png Size: 12022 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100206/dad68119/attachment-0003.png>

Reply by email

Graeme Geldenhuys
to zeljko: ok, but what's qt version on that ubuntu ? I suppose 4.5.0 ... which is pretty buggy.…
zeljko wrote 10 lines
> > * Treeview component doesn't point the + symbol to indicate that the > node can be expanded. It draws an empty rectangle. See attached > screenshot. some themes does not draw + symbol on linux (eg. windows theme), dunno why, problem is inside qt probably (QStylePainter), I'm using plastique with kde-3.5 and there everything looks ok, also with oxygen theme it looks correct.

Attached is the screenshot of Qt Designer - showing the treeview nodes painted correctly.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-Qt Designer.png Type: image/png Size: 5351 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100206/001ef4aa/attachment.png>

Reply by email

zeljko
to Graeme Geldenhuys: * IDE now doesn't detect when a file is changed by an external program. I don't get…
Graeme Geldenhuys wrote 6 lines
* IDE now doesn't detect when a file is changed by an external program. I don't get prompted by the IDE to reload the file. To make sure this is not a general IDE issue, I recompiled my IDE with GTK2 (same revision as I used for IDE+Qt4 widgetset). Using the IDE+GTK2, the IDE detects the file changed and prompts to reload it. So this is a issue specific to IDE+Qt widgetset.

yes, not only on qt, look at
http://bugs.freepascal.org/view.php?id=15331

Reply by email

Graeme Geldenhuys
to zeljko: ok, but what's qt version on that ubuntu ? I suppose 4.5.0 ... which is pretty buggy.…
zeljko wrote 6 lines
> > * Toolbar buttons with down arrow for dropdown menu. The down arrow is > not drawn. See attached screenshot. no screenshoot, but also I don't have such arrow on dropdown menu , so must recompile into gtk2 to see what have to be there :)

Here is another screenshot of Qt Designer showing that it is not an issue with my Qt theme. In Qt Designer the toolbar downarrows are drawn correctly (and they are flat buttons), but not in Lazarus IDE.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-Edit_Style_Sheet.png Type: image/png Size: 13839 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100206/4a4a510b/attachment-0001.png>

Reply by email

zeljko
to Graeme Geldenhuys
Graeme Geldenhuys wrote
Here is another screenshot of Qt Designer showing that it is not an issue with my Qt theme. In Qt Designer the toolbar downarrows are drawn correctly (and they are flat buttons), but not in Lazarus IDE.

Toolbar in Qt Designer is native QToolBar class, but in LCL we use LCL one, not native Qt class, so there could be the reason, why down arrow isn't painted.I'm currently trying to fix it.

z.

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys: I was told to give feedback on my usage of LCL-Qt, so here goes. I simply recompiled…

A font issue:

With IDE + LCL-GTK2 I use Source Editor with font "DejaVu Sans Mono" with Size 10 font, but in IDE + LCL-Qt the font size was much smaller, so I had to change the Source Editor font to DejaVu Sans Mono" with Size 11 font so that the text looked the same size as under LCL-GTK2. This was only an issue in the Source Editor window.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to zeljko: Toolbar in Qt Designer is native QToolBar class, but in LCL we use LCL one, not native Qt…
zeljko wrote
Toolbar in Qt Designer is native QToolBar class, but in LCL we use LCL one, not native Qt class, so there could be the reason,

Why the exception to the rule? Isn't the whole idea of LCL to wrap native widget components and not use custom drawn ones?

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email

zeljko
to Graeme Geldenhuys
Graeme Geldenhuys wrote 6 lines
On 06/02/2010, zeljko wrote: > Toolbar in Qt Designer is native QToolBar class, but in LCL we use LCL > one, not native Qt class, so there could be the reason, Why the exception to the rule? Isn't the whole idea of LCL to wrap native widget components and not use custom drawn ones?

We had some problems with native toolbar in the beginning, so decided to leave it to LCL for now. (no time to retest and try to implement native one at the moment).

zeljko

Reply by email

zeljko
to Graeme Geldenhuys: A font issue: With IDE + LCL-GTK2 I use Source Editor with font "DejaVu Sans Mono" with…
Graeme Geldenhuys wrote 7 lines
A font issue: With IDE + LCL-GTK2 I use Source Editor with font "DejaVu Sans Mono" with Size 10 font, but in IDE + LCL-Qt the font size was much smaller, so I had to change the Source Editor font to DejaVu Sans Mono" with Size 11 font so that the text looked the same size as under LCL-GTK2. This was only an issue in the Source Editor window.

For me gtk2 have too big fonts :) When I compare font with size 11 with qt3 than it's same. Try to compare font with size 11 with some kde app (eg. kwrite).

Reply by email

zeljko
to Graeme Geldenhuys: A font issue: With IDE + LCL-GTK2 I use Source Editor with font "DejaVu Sans Mono" with…
Graeme Geldenhuys wrote 7 lines
A font issue: With IDE + LCL-GTK2 I use Source Editor with font "DejaVu Sans Mono" with Size 10 font, but in IDE + LCL-Qt the font size was much smaller, so I had to change the Source Editor font to DejaVu Sans Mono" with Size 11 font so that the text looked the same size as under LCL-GTK2. This was only an issue in the Source Editor window.

btw. in source editor there's no font size , but font height which is different than size.

Reply by email

zeljko
to Graeme Geldenhuys: Here is another screenshot of Qt Designer showing that it is not an issue with my Qt…
Graeme Geldenhuys wrote 10 lines
On 06/02/2010, zeljko wrote: > > * Toolbar buttons with down arrow for dropdown menu. The down arrow is > > not drawn. See attached screenshot. > > no screenshoot, but also I don't have such arrow on dropdown menu , so > must recompile into gtk2 to see what have to be there :) Here is another screenshot of Qt Designer showing that it is not an issue with my Qt theme. In Qt Designer the toolbar downarrows are drawn correctly (and they are flat buttons), but not in Lazarus IDE.

Here too, as of laz r 23655 :)

Reply by email

Juha Manninen
to Graeme Geldenhuys: A font issue: With IDE + LCL-GTK2 I use Source Editor with font "DejaVu Sans Mono" with…
Show quoted text 5 lines
With IDE + LCL-GTK2 I use Source Editor with font "DejaVu Sans Mono" with Size 10 font, but in IDE + LCL-Qt the font size was much smaller, so I had to change the Source Editor font to DejaVu Sans Mono" with Size 11 font so that the text looked the same size as under LCL-GTK2. This was only an issue in the Source Editor window.

I has this font issue, too. Font height 10 is good for GTK2 and height 12 is good for QT. The difference on screen looks much bigger than 20%.

It is easy to change but still I wonder how can they measure the heights so differently.

Juha Manninen

Reply by email

zeljko
to Juha Manninen
Juha Manninen wrote 11 lines
> With IDE + LCL-GTK2 I use Source Editor with font "DejaVu Sans Mono" > with Size 10 font, but in IDE + LCL-Qt the font size was much smaller, > so I had to change the Source Editor font to DejaVu Sans Mono" with > Size 11 font so that the text looked the same size as under LCL-GTK2. > This was only an issue in the Source Editor window. I has this font issue, too. Font height 10 is good for GTK2 and height 12 is good for QT. The difference on screen looks much bigger than 20%. It is easy to change but still I wonder how can they measure the heights so differently.

AFAIK, gtk2 have font sizes problem not qt.I'm comparing qt fonts with sizes from qtconfig4, also if I can correctly remember , gtk doesn't have such problem (font sizes were ok).

Reply by email

Graeme Geldenhuys
to Juha Manninen: I has this font issue, too. Font height 10 is good for GTK2 and height 12 is good for QT.…
Juha Manninen wrote
It is easy to change but still I wonder how can they measure the heights so differently.

My thought too. The only thing I can think of is in my Gnome setup (global desktop settings), the DPI is forced to 96. Yet my X Window system reports the dpi otherwise, at 89 DPI.

$ xdpyinfo | grep resolution
  resolution:    89x87 dots per inch

I don't run KDE or any other Qt applications, so I don't know where you setup the "custom" DPI setting for Qt based applications. Or maybe Qt looks at the X11 dpi setting.

No to figure out the mission of forcing the whole X11 to 96 DPI, so I can test again to see if that explains the reason for the difference in Lazarus source editor.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email

Juha Manninen
to Graeme Geldenhuys: I was told to give feedback on my usage of LCL-Qt, so here goes. I simply recompiled…

Hi,
I have OpenSuse 11.2 and KDE4.3.4.

* Source Editor window keeps jumping. It jumps to the top left corner of the screen after opening every project.

No jumping here.

* Toolbar buttons with down arrow for dropdown menu. The down arrow is not drawn.

It is drawn correctly for me.

* Treeview component doesn't point the + symbol to indicate that the node can be expanded. It draws an empty rectangle.

Ok, I also have some issue with this. I think the symbol is so small I can hardly see it. It works when clicked though.

Regards,
Juha Manninen

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys: My thought too. The only thing I can think of is in my Gnome setup (global desktop…
Graeme Geldenhuys wrote 7 lines
My thought too. The only thing I can think of is in my Gnome setup (global desktop settings), the DPI is forced to 96. Yet my X Window system reports the dpi otherwise, at 89 DPI. $ xdpyinfo | grep resolution resolution: 89x87 dots per inch

That was the problem! Forcing X11 to 96dpi (same as Gnome desktop settings), both Lazarus (Qt | GTK2) now have the same font size in the Source Editor screen - using the same editor font settings. :-)

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Juha Manninen: I have OpenSuse 11.2 and KDE4.3.4. No jumping here. It is drawn correctly for me. Ok, I…
Juha Manninen wrote 5 lines
> * Source Editor window keeps jumping. It jumps to the top left corner > of the screen after opening every project. No jumping here.

I can make a screencast to prove it. :-) The Source Editor window jumps to position (0,0) whenever I use "Project > Open recent project" or "Project > Open Project".

Show quoted text 5 lines
> * Treeview component doesn't point the + symbol to indicate that the > node can be expanded. It draws an empty rectangle. Ok, I also have some issue with this. I think the symbol is so small I can hardly see it. It works when clicked though.

Functionality is still fine, it simply doesn't draw the + symbol in the small rectangle.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email

zeljko
to theo
theo wrote
Hi Zeljko, Here disabled toolbuttons in the IDE have a border (look like buttons) while enabled ones are flat. Need a screenshot?

No, I see that, fight with it currently, but got strange results when drawing normal button via QStyleCC_ToolButton, there's always an arrow on button, no matter what I set.
But in this case (via QStyleCC_ToolButton) borders are ok.

zeljko

Reply by email

zeljko
to theo
theo wrote
> hmmm...maybe it's time to revamp it with qtlcl :) Feel free! ;-) You know better if it's possible and how much effort it would take.

Of course it's possible, also I think that there isn't needed to much effort to get it work, and then continue to work on it.
Well ... maybe don't know yet, but if I have more free time in next few months, I'll try that definitelly :)

zeljko

Reply by email

Graeme Geldenhuys
to zeljko: hmmm...maybe it's time to revamp it with qtlcl :)
zeljko wrote
> *Jos? Le?n ?was busy with *Delphi for PHP > But our faces are still there http://www.xpde.com/team.php hmmm...maybe it's time to revamp it with qtlcl :)

I was actually looking at xpde about three months ago and thought of revamping it using fpGUI. :) Maybe not every single screen, but at least the window manager and taskbar design.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email