Sign in Join

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

Mailing lists / qt / 2007-07

for Den

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Paul Ishenin

Hello, Items specific to the Qt widget set.

Den, can you add QStyle descendants to bingings (QMotifStyle, QCDEStyle, QMacStyle ...)? They will no be used in lazarus but they give me opotunity to test themed painting with different Styles without having to install qt under linux and mac.

I need only constructors and destructors and nothing more. We can delete them later from bindings if needed.

I know I told that we doesnot need them, but circumstances makes me to rethink :)

Best regards, Paul Ishenin.
zeljko
to Paul Ishenin
Paul Ishenin wrote 12 lines
Hello, Items specific to the Qt widget set. Den, can you add QStyle descendants to bingings (QMotifStyle, QCDEStyle, QMacStyle ...)? They will no be used in lazarus but they give me opotunity to test themed painting with different Styles without having to install qt under linux and mac. I need only constructors and destructors and nothing more. We can delete them later from bindings if needed. I know I told that we doesnot need them, but circumstances makes me to rethink :)

when I start my test app with -style cleanlooks I can see splitter (not nice but it's different color so it's visible).
Here is screenshoot.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: splitter-cleanlooks.png
Type: image/png
Size: 6784 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20070718/5520c7d0/attachment.png>

Paul Ishenin
to zeljko

zeljko ?????:

Show quoted text 17 lines
On Wednesday 18 July 2007 03:12, Paul Ishenin wrote: > Hello, Items specific to the Qt widget set. > > Den, can you add QStyle descendants to bingings (QMotifStyle, QCDEStyle, > QMacStyle ...)? They will no be used in lazarus but they give me > opotunity to test themed painting with different Styles without having > to install qt under linux and mac. > > I need only constructors and destructors and nothing more. We can delete > them later from bindings if needed. > > I know I told that we doesnot need them, but circumstances makes me to > rethink :) when I start my test app with -style cleanlooks I can see splitter (not nice but it's different color so it's visible). Here is screenshoot.

ow, thanks for great hint. I did not know -style argument. It will help. So no need for adding that style classes anymore.

Best regards,
Paul Ishenin.

zeljko
to Paul Ishenin
Paul Ishenin wrote 21 lines
zeljko ?????: > On Wednesday 18 July 2007 03:12, Paul Ishenin wrote: >> Hello, Items specific to the Qt widget set. >> >> Den, can you add QStyle descendants to bingings (QMotifStyle, QCDEStyle, >> QMacStyle ...)? They will no be used in lazarus but they give me >> opotunity to test themed painting with different Styles without having >> to install qt under linux and mac. >> >> I need only constructors and destructors and nothing more. We can delete >> them later from bindings if needed. >> >> I know I told that we doesnot need them, but circumstances makes me to >> rethink :) > > when I start my test app with -style cleanlooks I can see splitter (not > nice but it's different color so it's visible). > Here is screenshoot. ow, thanks for great hint. I did not know -style argument. It will help. So no need for adding that style classes anymore.

yes, you can use -style params since qt3. If you set wrong style it will revert to redmond (win95).

Den Jean
to Paul Ishenin: zeljko ?????: ow, thanks for great hint. I did not know -style argument. It will help. So…
am Paul Ishenin wrote
So no need for adding that style classes anymore.

I started anyhow, only to find out that
'src/gui/styles/qmacstyle_mac.h
is only included in the mac source tar and that when copied over, it gives binding generator problems. So I guess it is not worth the time.

But I'v added QSyleFactory for the next version,
this one is handy to enumerate the available styles.

In the mean time just use
QApplication_setStyle(@w);
with either of the following strings, to change at run-time:

Output of QStylefactory_keys on Linux:
[DBGTGT] Windows
[DBGTGT] Motif
[DBGTGT] CDE
[DBGTGT] Plastique
[DBGTGT] Cleanlooks