Sign in Join

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

Mailing lists / lazarus / 2012-09

QT Style

13 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

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

Krzysztof

Hi,

I have application which is using QT widgetset on all platforms (gnome, kde, windows). But Qt is trying simulate native look on all platforms. Exists any style or switch which makes the program will look the same on all platforms?

Regards

Reply by email

zeljko
to Krzysztof: I have application which is using QT widgetset on all platforms (gnome, kde, windows).…
Krzysztof wrote 6 lines
Hi, I have application which is using QT widgetset on all platforms (gnome, kde, windows). But Qt is trying simulate native look on all platforms. Exists any style or switch which makes the program will look the same on all platforms?

Yes. Start your application with param -style windows. It's win95 look and it works on all platforms.

zeljko

Reply by email

Krzysztof
to zeljko
Yes. Start your application with param -style windows. It's win95 look and it works on all platforms.

Thanks!

fpGUI perhaps?

This interface is the best solution, but I can't use it until it doesn't have trayicon component

Reply by email

Den Jean
to Krzysztof: I have application which is using QT widgetset on all platforms (gnome, kde, windows).…
Krzysztof wrote 5 lines
I have application which is using QT widgetset on all platforms (gnome, kde, windows). But Qt is trying simulate native look on all platforms. Exists any style or switch which makes the program will look the same on all platforms?

Instead of provide the startup style parameter
you can also programmatically achieve this,
see the mainwindow demo program of the binding on

http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html

see also
http://qt-project.org/doc/qt-4.8/qapplication.html#setStyle-2

Kind regards,

Jan

Reply by email

Graeme Geldenhuys
to Krzysztof: Native. Hmm, I've never heard about LCL-fpGUI. What is this? I can mix standard LCL…
Krzysztof wrote
I've never heard about LCL-fpGUI. What is this?

It is a Lazarus LCL widgetset backend. It is a LCL interface to other toolkits just like LCL-Qt, LCL-GTK1, LCL-GTK2, LCL-CustomDrawn, LCL-Cocoa, LCL-Carbon.

Native fpGUI: This is when you only use fpGUI Toolkit - no LCL. This is when you get the true power of fpGUI and single source development, with very low dependencies.
LCL-fpGUI: This is when you use LCL, and told the Lazarus IDE to compile your project for the fpGUI Toolkit backend.

I can mix standard LCL controls with fpGUI?

No.

How to install it?

LCL-fpGUI comes standard with Lazarus, but it is still in Alpha state. Many feature still need to be implemented before it can truly be used to compile any LCL application. There is no dedicated developer working on this, hence progress is slow. It's not a difficult task though. I simply don't have the time, as fpGUI, tiOPF, FPTest, OnGuard, my daytime job, and my family keeps me rather busy. I do occasionally supply LCL-fpGUI patches though.

Regards,
- Graeme -

Reply by email