[Qt] Problem with Qt binding v2.4

Den Jean Den.Jean at telenet.be
Fri Aug 19 23:00:31 CEST 2011


On Thursday 18 August 2011 22:12:24 Trx TX wrote:
> Hi, thank you for your answer.
> 
> Here it's not inlined, its just :
> 
>     bool isValid() const;
> 
> I have in the meantime commented out that function in the library, and it
> works perfectly. 
Then that is actually a bug in your setup: your Qt headers do not match
your Qt binary libraries. You should report this bug.

> I have compiled it in scratchbox (harmattan sdk is
> available now like fremantle..) which can be downloaded from nokia's
> site... I believe that Harmattan is hardfloat now, like MeeGo.
> 
> Also, since Harmattan is uses QML now, we are in kind of a problem, as
> QWidget is being deprecated.. There are no native styles, so everything is
Is qwidget not present anymore in the compiled libraries? In Fremantle the 
methods with the deprecated decorator where not present in the binary 
libraries. How did you manage to compile lcl?

> ugly :)
> One more problem is that when you create an application and run it in N950
> (i was one of the lucky few who received N950 from Nokia) there is a
> toolbar in the bottom of the screen which you cant hide unless you have
> QML code...
> 
> For the past few days, i have managed to create a QML window (i have
> translated some QtDeclarative headers into libQt4Pas) via QDeclarativeView.
> Then i created a dummy class in the library (QDeclarativeItem), and
Tell me which classes you need and I may look into it (but w/o a N950
I am not sure if this easy)
> registered that type during runtime via qmlRegisterType function. Now, if i
> use eg. a QPushButton i can display it in that QMLWindow via
> QDeclarativeProxyWidget. But the trouble is, i can't embbed any LCL
> component because it needs a parent in order to be shown which is where i
> got stuck. I dont know how to make LCL component to be drawn(is this the
> right word?) without a parent (not possible i believe), or how to get a
> valid hwnd from that qml window.. Do you have any suggestions how to solve
> this?
Given the screen size and the difference in widget layout 
http://users.telenet.be/Jan.Van.hijfte/qtforfpc/maemo_lcl_qt4.png
I think using Qt directly in FPC seems better than using LCL/Qt. 
I did some programs in FPC/Qt and what is nice that I can easily compile
and develop on the device. FPC is so fast, compiling the same program
in C++ is impossible on the device. Meego on a tablet with a large screen
size would make LCL interesting again.

> It would be nice to mix QML and LCL :)
I did not look into Qt Quick yet.
> One more thing, i have translated the whole QtSensors, and they can now be
I may look into it, but w/o an N950 ... and Meego on the N900 is just 
too slow. The emulator in Qt Sdk is probably also very slow, I tried Debian on 
qemu and it is just too slow.

regards,

Den Jean





More information about the Qt mailing list