Re: [Interest] Simulating Mouse Click Event?

2013-08-22 Thread alexander golks
Am Wed, 21 Aug 2013 12:39:44 -0400
schrieb Mitchell Verter mitchell.ver...@gmail.com:

  QCoreApplication::postEvent(this, evt);

i am doing nearly the same, but i use recorded events and replay them. then i 
use sendEvent and not postEvent, but this shouldn't be your problem.

but: i think you must locate the correct receiver for your event. i am looping
over QApplication::allWidgets() and searching for a widget with correct object
name and correct class name. 
this values i have saved during recording, so i can use them on replay. effect:
i can even move the window around and resize, the mouse press is delivered to 
my pushbutton nevertheless.

alex

-- 
/*
 *  You will inherit millions of dollars.
 */


signature.asc
Description: PGP signature
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] speeding up QListView scrolling

2013-08-22 Thread Bo Thorsen
Den 22-08-2013 04:58, Hamish Moffatt skrev:
 I'm using a QListWidget in an embedded application and I'm finding it
 quite slow to scroll. There's not many items on the list, but it is in a
 custom QWidget with a translucent background displayed over the top of
 some other widgets (all of which are static and not animated or anything).

 Another QListWidget which isn't part of a pop-up translucent widget
 performs somewhat better. Same for another QScrollArea I have containing
 some more custom widgets.

 Are there any tricks for speeding it up? I don't know anything about
 OpenGL or the graphics framework but I read some suggestion that it
 could help. This -
 http://lists.qt.nokia.com/public/qt-interest/2010-February/019575.html -
 suggests the QAbstractScrollArea viewport can be set to a QGLWidget, but
 all I got was a flickering mess.

Forget OpenGL when you're not using something that clearly benefits from 
it. It's *not* a magic optimization wand we can add over our widgets. If 
it was, we would all be using it as the standard painting engine.

You probably have to look at your own code and make the list faster. The 
way to do that is to make the items faster. If they are just text, then 
you're out of luck. But a well written model with QListView instead of 
QListWidget is usually very fast.

And of course, the obvious answer: Doing optimization without numbers is 
almost impossible. Start by figuring out what it is that takes up the 
time instead of guessing.

Bo.

-- 
Bo Thorsen, European Qt Manager, Integrated Computer Solutions
ICS - Delivering World-Class Applications for Embedded  Mobile Devices
http://ics.com/services
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt3 repository

2013-08-22 Thread Diego Iastrubni
Just a few random commits I see:

- 
http://git.trinitydesktop.org/cgit/qt3/commit/?id=7c0bc39229bbba839dea93fe12b0d2cdbe21eec0

The message log claims that deleting NULL will crash an app. This is
not true, as in C++ you can safely delete a null pointer.

whrp74@srv690 src $ make test1
g++ test1.cc   -o test1
whrp74@srv690 src $ ./test1
whrp74@srv690 src $ cat test1.cc
int main()
{
int *i = 0;
delete i;
return 0;
}
whrp74@srv690 src $ gcc --version
gcc (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The bug they fix is still there.

- 
http://git.trinitydesktop.org/cgit/qt3/commit/?id=679d4f0bcdd20ef467ee02b366bf024779950fc2

OOPS. This a very good fix. Lets hope we don't have it in Qt5.


- 
http://git.trinitydesktop.org/cgit/qt3/commit/?id=16f24a61f80fef5f29c81182a3bcf3906bdee7a7

In this bug they modify the embedded sqlite3. This is bad.
I am not sure why they do this change:
- qWarning( QString( QODBCDriver::open: Unknown option value '%1'
).arg( *it ) );
+ qWarning( QODBCDriver::open: Unknown option value '%s', (*it).latin1() );

- 
http://git.trinitydesktop.org/cgit/qt3/commit/?id=58451e41d9ecfb405f5dd2718444ac78e8d51c8b

Be warned:
+Qt 3.5 is a new feature release. It is not backwards compatible with any
+prior Qt3 version due to changes in the QStyle API.


 - 
http://git.trinitydesktop.org/cgit/qt3/commit/?id=04fcdc080321c9531c5b61e6f216d3967f2d39ef
sed -i 's/kwin/twin/g'? This commit seems very ... ... ... . ?

This is what I see from very limited view. Note, I have no idea what I
am talking about, and I might be wrong. Its very easy to criticize
someone when you are an outsider. but...

It seems that this works for them as an OSS, but for a proprietary
app.. be careful, you cannot iterate that often and you have only one
delivery.


On Thu, Aug 22, 2013 at 12:24 AM, Thiago Macieira
thiago.macie...@intel.com wrote:
 On quarta-feira, 21 de agosto de 2013 20:06:50, Guido Seifert wrote:
 Is there a changlog, which explains, what the patches do? This is not a
 direct question to you, Thiago.

 They appear to have written changelogs for their 3.3.8c and d releases. The
 c release's changelog clearly violates Qt patch release policies, by adding
 symbols that weren't there before.

 As for the rest, I believe their changelog is the Git log.

 --
 Thiago Macieira - thiago.macieira (AT) intel.com
   Software Architect - Intel Open Source Technology Center

 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Qimage showing grayed out images

2013-08-22 Thread Amogh Kudari
Hello All,

  I have a Qwebview application which loads some of the links
present in server. The application is using minimal plugin which displays
the output in the form of images.  The server has some html test
pages/suites.The links have some basic html apps as well as complex one
where it has html and css animations.
In my desktop PC all the links works fine, I am able to see
images being dumped and output is proper.  But the similar setup in my
laptop does not work properly. Most of the links images are all grayed out
(specially links containing animations).

Is it a resolution problem? Should I change the minimal plugin resolution
or my laptops resolution in order to make it work fine.

Please suggest how to make it work properly on laptop

Thanks and Regards,
Amogh
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt3 repository

2013-08-22 Thread Sam S.

  -
 http://git.trinitydesktop.org/cgit/qt3/commit/?id=04fcdc080321c9531c5b61e6f216d3967f2d39ef
 sed -i 's/kwin/twin/g'? This commit seems very ... ... ... . ?


Lol, yeah...
They did revert those replacements again in a subsequent commit, but still,
it doesn't make a good impression if blind replace string in all files
commits can go into the master repository with no human being having looked
at the patch to check it for sanity first.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest