Hi all,
I was listening in on the last irc meeting and caught an aftermeeting
mentioning about bad Qt4 performance. I offered an article and a possible
workaround I found recently, in case people are not aware of it, and was
asked to bring it to attention to other developers also, so here goes:
I'm suffering bad graphical performance in Qt4 and PyQt4 applications and
searched for solutions. I found a post on nokia.com [1] that mentions a
command line switch that might help.
In short: adding "-graphicssystem raster" to my Qt4 applications' command line
improved performance drastically for me. There's also a method to set it
programmatically, and an environment variable [2].
[1] http://labs.qt.nokia.com/2008/10/22/so-long-and-thanks-for-the-blit/
[2] http://doc.qt.nokia.com/4.7/qapplication.html#setGraphicsSystem
Thanks and much regards,
Sanne
I have a copy of kdebluetooth-1.0_beta8.tar.bz2 for KDE3 as well as a copy of kmobiletools for KDE3.
I don't know how outdated these tools might be, be Trinity has no such tools. People around the world routinely sync mobile devices and cell phones with their computers. Trinity users have to use non Trinity apps to perform what is now a routine task for many.
Would we be wasting our time porting these apps to Trinity?
Darrell
tdebindings failed to build with the following:
x_6.cpp:2318: error: 'class x_TQEventLoop' has no member named 'gsourcePrepare'
x_6.cpp:2318: error: 'GSource' was not declared in this scope
x_6.cpp:2318: error: expected primary-expression before ')' token
x_6.cpp:2323: error: 'class x_TQEventLoop' has no member named 'gsourceCheck'
x_6.cpp:2323: error: 'GSource' was not declared in this scope
x_6.cpp:2323: error: expected primary-expression before ')' token
x_6.cpp:2328: error: 'class x_TQEventLoop' has no member named 'gsourceDispatch'
x_6.cpp:2328: error: 'GSource' was not declared in this scope
x_6.cpp:2328: error: expected primary-expression before ')' token
x_6.cpp:2333: error: 'class x_TQEventLoop' has no member named 'processX11Events'
Darrell
I see the following configure/make warnings with tdebindings:
configure.in:53: the top level
korundum/rubylib/rbkconfig_compiler/Makefile.am:5: `%'-style pattern rules are a GNU make extension
qtsharp/src/bindings/Makefile.am:6: wildcard *.cs: non-POSIX variable name
qtsharp/src/bindings/Makefile.am:6: (probably a GNU make extension)
qtsharp/src/bindings/Makefile.am:6: wildcard static/*.cs: non-POSIX variable name
qtsharp/src/bindings/Makefile.am:6: (probably a GNU make extension)
qtsharp/src/generator/Makefile.am:3: wildcard *.cs: non-POSIX variable name
qtsharp/src/generator/Makefile.am:3: (probably a GNU make extension)
qtsharp/src/uicsharp/Makefile.am:3: wildcard *.cs: non-POSIX variable name
qtsharp/src/uicsharp/Makefile.am:3: (probably a GNU make extension)
Looking around the web indicates the following possible solution:
=======================================
diff -urN tdebindings/korundum/rubylib/rbkconfig_compiler/Makefile.am tdebindings.new/korundum/rubylib/rbkconfig_compiler/Makefile.am
--- tdebindings/korundum/rubylib/rbkconfig_compiler/Makefile.am 2012-09-14 17:58:59.000000000 -0500
+++ tdebindings.new/korundum/rubylib/rbkconfig_compiler/Makefile.am 2012-11-28 10:01:55.000000000 -0600
@@ -2,7 +2,7 @@
RBUIC=rbuic
-%.rb: %.ui
+.ui.rb:
$(RBUIC) -tr ${UIC_TR} -kde $*.ui -o $@
exampleprefs_base.rb: $(srcdir)/example.kcfg rbkconfig_compiler $(srcdir)/exampleprefs_base.kcfgc
diff -urN tdebindings/qtsharp/src/bindings/Makefile.am tdebindings.new/qtsharp/src/bindings/Makefile.am
--- tdebindings/qtsharp/src/bindings/Makefile.am 2012-09-14 17:59:01.000000000 -0500
+++ tdebindings.new/qtsharp/src/bindings/Makefile.am 2012-11-28 10:05:16.000000000 -0600
@@ -1,3 +1,5 @@
+AUTOMAKE_OPTIONS = -Wno-portability
+
all: Qt.dll
TQWidget.cs:
diff -urN tdebindings/qtsharp/src/generator/Makefile.am tdebindings.new/qtsharp/src/generator/Makefile.am
--- tdebindings/qtsharp/src/generator/Makefile.am 2012-09-14 17:59:01.000000000 -0500
+++ tdebindings.new/qtsharp/src/generator/Makefile.am 2012-11-28 10:08:50.000000000 -0600
@@ -1,3 +1,5 @@
+AUTOMAKE_OPTIONS = -Wno-portability
+
all: generator.exe
generator.exe: $(wildcard *.cs)
diff -urN tdebindings/qtsharp/src/uicsharp/Makefile.am tdebindings.new/qtsharp/src/uicsharp/Makefile.am
--- tdebindings/qtsharp/src/uicsharp/Makefile.am 2012-09-14 17:59:01.000000000 -0500
+++ tdebindings.new/qtsharp/src/uicsharp/Makefile.am 2012-11-28 10:08:01.000000000 -0600
@@ -1,3 +1,5 @@
+AUTOMAKE_OPTIONS = -Wno-portability
+
all: uicsharp.exe
uicsharp.exe: $(wildcard *.cs)
=======================================
The warnings disappear with the patch. Is this a legitimate patch to push upstream or are there more palatable fixes?
Darrell