[bt-devel] Problem with Mag Window and Scrolling

Gary Holmlund gary.holmlund at gmail.com
Sun Oct 23 20:53:52 MST 2011


After trying BibleTime on ubuntu 11.10, I see that we have a serious 
bug. The Mag Window is not working. To be more specific, it will work if 
you open a new Bible window and try it. But, if you change to another 
verse so that the window text is reloaded, the Mag window quits. If you 
try a window that was automatically opened by the saved session, it will 
not work.

I have been using Fedora 15 and it works fine with the latest source. 
But in trying ubuntu 11.10 (both 32 bit and 64 bit) and Fedora 16 beta2, 
they don't work.

Fedora 15 - Qt 4.7.4
Ubuntu 11.10 - Qt 4.7.4
Fedora 16 - Qt 4.8.0

I have used the same Bt source for all tests and the F15 and u 11.10 
have the same Qt. I don't know why it works on F15 and not on the others.

The Bt 2.8.1 that comes with ubuntu 11.10 also does not work, so it is 
not because of a recent change.

I though perhaps the html loaded the first time into the window was 
different that the second time. I have been able to rule this out.

I have been debugging this problem. We use BtHtmlJsObject to call from 
c++ to javascript and for javascript to call c++. I have determined that 
when the problem occurs, it is because we try to call javascript from 
c++ and the call does not get to the javascript.

The specific c++ to javascript call that fails is in 
BtHtmlJsObject::mouseMoveEvent where you see "emit startTimer". All c++ 
to javascript calls fail. The BtHtmlJsObject::moveToAnchor function 
fails. This causes the Bible text in the window to not scroll as you 
change verses.

The BtHtmlJsObject is attached to the javascript by the 
BtHtmlReadDisplay::loadJSObject function. It is being called each the 
the text of the window is reloaded, so this is not the problem.

My current conclusion is that the problem is somewhere inside of Qt. I 
am compiling a version of Qt so that I can debug into the Qt functions. 
I will keep you posted.

Anyone have any other thoughts?

Gary





More information about the bt-devel mailing list