Linux widget types lazarus / 1-Linux ---------------------------------------------------------------------- techpro · 2010-02-24 17:26 I finally had to update my old Linux system so I installed the KDE edition of Linux Mint, which is based on Kubuntu 9.10 afaik. I have installed Lazarus 0.9.29 beta. I found that when I try to open a project or a file, a blank modal window appears in front of the open dialog and prevents access to it. I came here looking for help, and saw some posts suggesting that using QtCurve style could cause problems with Lazarus. I eventually managed to get rid of that. In the GTK+ Appearance settings I selected Raleigh, which is the only other option than Qt Curve. However, although the native KDE applications have nice modern rounded look widgets, Lazarus and my Laz apps have ugly rectangular GTK1 looking ones. I tried rebuilding Lazarus in case that would help. It was built as GTK2+ but I did it again anyway. Strangely enough, when I ran it as root in order to do the rebuild it came up with rounded widgets. But it doesn't when run as a normal user. What have I missed? ---------------------------------------------------------------------- Troodon · 2010-02-24 17:34 Did you issue 'sudo startlazarus' to rebuild the IDE? Also, try deleting the .lazarus directory in your home directory. ---------------------------------------------------------------------- techpro · 2010-02-24 17:43 Quote from: Troodon on February 24, 2010, 06:34:41 pmDid you issue 'sudo startlazarus' to rebuild the IDE? Actually I did 'kdesu startlazarus' but I think it amounts to the same thing. QuoteAlso, try deleting the .lazarus directory in your home directory. OK I'll give that a try. ---------------------------------------------------------------------- theo · 2010-02-24 18:03 Quote from: techpro on February 24, 2010, 06:26:04 pm although the native KDE applications have nice modern rounded look widgets, Lazarus and my Laz apps have ugly rectangular GTK1 looking ones. They should not be ugly, but they won't look the same as native KDE apps. They should look like in GIMP or any other GTK2 app. ---------------------------------------------------------------------- JuhaManninen · 2010-02-24 21:08 Hi! I recommend compiling Lazarus using QT-bindings. I use that and it looks good and is more stable that GTK2 bindings version (yes!). It is easy when you have KDE and QT already installed. Instructions: http://wiki.lazarus.freepascal.org/Qt_Interface Then you don't need to worry about QtCurve. I don't know why you got different visual appearance using root but I guess the Lazarus QT version solves that, too. :-) Juha ---------------------------------------------------------------------- techpro · 2010-02-26 12:29 It looks the same as gimp, firefox etc. I just find the boxy widgets look really dated under KDE 4. I will try compiling with qt bindings, but I am seeing a message that I can't find mentioned in the forum here. It says: "warning ./link.res contains output sections; did you forget -T?" It doesn't stop the compilation but am I supposed to do something about it? ---------------------------------------------------------------------- Leledumbo · 2010-03-01 06:35 QuoteIt doesn't stop the compilation but am I supposed to do something about it?No, just ignore it. See FPC FAQ. ---------------------------------------------------------------------- techpro · 2010-03-01 09:03 Thanks. Other than the ability to get more modern looking widgets, are there any pros/cons to building Linux apps for Qt? It appeared to be a fairly straightforward process and I didn't have to install any extra libraries, unlike on Windows where it was a struggle to get it to work (two sets of DLLs with identical names and I installed the wrong ones) and after I did I couldn't see any advantage anyway. ---------------------------------------------------------------------- Leledumbo · 2010-03-01 10:57 QuoteOther than the ability to get more modern looking widgets, are there any pros/cons to building Linux apps for Qt?Pros: Some nice components are built-in for Qt (for example, the web browser component)Cons: Does all Linux distros have Qt installed by default?Qt apps started slower than other widgetsets and sometimes eat more memory (AFAIR)