![]() |
Re: Sailfish SDK Alpha Qt5 released
What's the difference between RowLayout from QtQuick.Layouts and Row from QtQuick 2.0? And what about QtQuick.Controls 1.0? Sailfish SDK indicates its presence but the emulator doesn't find the module installed.
|
Re: Sailfish SDK Alpha Qt5 released
Quote:
Code:
Q_DECL_EXPORT int main(int argc, char *argv[]) |
Re: Sailfish SDK Alpha Qt5 released
Hi,
I'm trying to create a nice font picker, but I'm having problems with highlighting: Code:
import QtQuick 2.0 |
Re: Sailfish SDK Alpha Qt5 released
The solution was to define header like that
Code:
Dialog |
Re: Sailfish SDK Alpha Qt5 released
From a tweet @JollaHQ:
Quote:
Quote:
|
Re: Sailfish SDK Alpha Qt5 released
So I was sniffing around in the emulator a bit looking for /etc/os-release but only found some older files detecting Mer, ie system-release. It seems as there is no way of properly detecting Sailfish atm.
|
Re: Sailfish SDK Alpha Qt5 released
Quote:
Code:
lsb_release -a |
Re: Sailfish SDK Alpha Qt5 released
It also detects Mer.
Edit: And no /etc/vconsole.conf either. Adding it yourself works though, thankfully, as using a us layout with a eu/swedish keyboard is a real pita. Code:
# /etc/vconsole.conf |
Re: Sailfish SDK Alpha Qt5 released
Is there a way to upgrade to qt-5.1.x in the SDK? I've got pyqt-5.0.1 to build now but I got an error when import:
Code:
>>> from PyQt5 import QtQuickEdit: I got a response on the pyqt mailing list that this should be fixed in pyqt-5.1 but that version doesn't build with qt-5.0.x. Edit2: I'm not sure the response makes sense for Sailfish x86 though. http://www.riverbankcomputing.com/pi...er/033293.html |
Re: Sailfish SDK Alpha Qt5 released
Quote:
Quote:
|
Re: Sailfish SDK Alpha Qt5 released
Quote:
First you need to install some stuff with zypper: Code:
zypper in qt5*Code:
Name: sipCode:
Name: pyqt |
Re: Sailfish SDK Alpha Qt5 released
Ok so I managed to update qt on the sdk and got the newest snapshot of pyqt to work. :) But I can't get a hello world app to actually show up in the emulator. Using silica gives an import error and using only raw qml is not working either. There is a warning spitting out "libEGL warning: DRI2: failed to authenticate", dunno if that's the problem? So the app is running but doesn't show up graphically ... maybe I need a .desktop file to make it work?
Edit: Nope, didn't work with a desktop file either. Edit2: I got an old sdk so must upgrade and now mers repo server is down so will take some time until I can test again. |
Re: Sailfish SDK Alpha Qt5 released
Quote:
|
Re: Sailfish SDK Alpha Qt5 released
Success!!! I managed to upgrade the sdk and get a hello world pyqt to run. Was I THE first? :D
Packages here: http://enlisy.org/~xerxes2/pkg/sailfish/ You need both sip and pyqt. And you need to use Silicas ApplicationWindow to make it work as only raw qml doesn't work. |
Re: Sailfish SDK Alpha Qt5 released
Quote:
|
Re: Sailfish SDK Alpha Qt5 released
So everything seems to work just fine in the emulator, even got sound to work, except ... the Component.onDestruction signal doesn't seem to work. Anyone else noticed this? And the emulator doesn't seem to support landscape mode, though Silica does. The UX is very slow though but hopefully it'll run a bit faster on real hardware. :) It wouldn't hurt though if it was faster in vbox too ...
Edit: And the aboutToQuit signal doesn't work either when closing an app from the UX. Edit2: I can't get the onDestruction signal to work on my desktop either. |
Re: Sailfish SDK Alpha Qt5 released
Quote:
many apps on n9 written in pyqt/pyside is dogslow startup may I tell one of the reasons? |
Re: Sailfish SDK Alpha Qt5 released
If you only want to use QML then you can use Pyotherside but if you want to use the whole Qt C++ API you'll have to use PyQt.
|
Re: Sailfish SDK Alpha Qt5 released
Quote:
- PyQt 5/Qt5 API is a lot richer than PyOtherSide & Python & QML API, see the above post; - there are many PyQt softwares on Maemo 4&5, desktop PC which use a lot of Qt API, so they could be ported to Sailfish if the GUI is ported to QML; - more developer options = more softwares on Sailfish OS. From MeeGo Harmattan & (old) Nemo Mobile to Sailfish OS, many PySide & QML softwares would be easily ported to PyOtherSide & QML as they don't use a lot of Qt API, the rest would be easier to port using PyQt 5. Quote:
https://devdays.kdab.com/?page_id=225#3 Well, nowawadays many users want everything, iDon't & etc users want all softwares installed and then open in 0.005s, even if it is something like LibreOffice mobile. Due to this thinking, we have a dumbing down mobile world with Android, iOS, etc (even Ubuntu Touch at least v13.10) without (3rd party or non-default) dependencies, so software bloated and less capable. |
Re: Sailfish SDK Alpha Qt5 released
Quote:
To be more clear: Shouldn't we care more to make optimized apps that uses less resources? People often says: Android is bloated cause of dalvik blablabla. And now we seem to do the same mistake by sometime lazyness? people cries like crazy about "Jollas specs is to old and to less memory and should have better CPU blabla" I guess the actuall reason is: Its to less because we want to run big librarys because the community is to lazy port apps to pyotherside. Don't get me wrong here. I KNOW it maybe sometime will take alot of time and resources. But still. If stuff can be ported to pyotherside it should be done. If maintainer has now time, well we all should help him/her because isn't that what opensource is about? All this crying about everything should be open? Isn't open source about contribute give back and help each other? Or why else should apps be open? If more people started contribute I am sure most of the stuff could be ported to pyotherside and we would get faster cool apps... Btw. It would also be good if Mer/sail moved away from Python2.x to 3.x series inmstead because thats were the linux desktop also is heading.... |
Re: Sailfish SDK Alpha Qt5 released
Quote:
Pyside: https://github.com/xerxes2/panucci/b...lui/qmlmain.py Pyqt5: https://github.com/xerxes2/panucci/b...ui/qml2main.py As I said I'm not using much Qt stuff other than Quick but porting to Pyotherside will still, if even possible, require a lot of work. Pyqt maps 1:1 with the C++ API and is very easy to use if you already used Pyside before. And would you care to explain why Pyotherside would use less resources than Pyqt? They're both using the same Qt libs so give some proof or it didn't happen. :P Use Pyotherside if you want but for existing Pyside apps Pyqt is the much faster way to port. Pyqt is GPL3 though so your app must use that license too or you must purchase a commercial license. Edit: Just to clarify, porting from Pyside to Pyqt5 is basically namespace changes but porting to Pyotherside will require a complete rewrite of your gui and some more stuff. I've never used Pyotherside so someone correct me if I'm wrong. |
Re: Sailfish SDK Alpha Qt5 released
I've just ported my "Perth Trains" app to pyotherside. It's probably a bit hacky (I struggled with knowing which data types pyotherside will handle, a list of instances didn't work, but a list of dicts apparently does), and I plan to also port to pyqt at some point (just out of self-interest, and I already use pyside for fremantle/harmattan):
https://github.com/mattaustin/freman...f675729e773f35 |
Re: Sailfish SDK Alpha Qt5 released
Quote:
|
Re: Sailfish SDK Alpha Qt5 released
Performance comparision by THP himself on QtDevDays 2013
https://pbs.twimg.com/media/BWHgLHNIEAANIuf.jpg:large Some other pics from there: https://pbs.twimg.com/media/BWHizsjIIAAnX6v.jpg:large https://pbs.twimg.com/media/BWHfNSmIIAA_LEu.jpg:large https://pbs.twimg.com/media/BWHizsjIIAAnX6v.jpg:large https://pbs.twimg.com/media/BWHo-wnIQAALBYs.jpg:large https://pbs.twimg.com/media/BWHeAnkIcAAgS-W.jpg:large |
Re: Sailfish SDK Alpha Qt5 released
Quote:
Edit: Hm, that should be less than 20mb ... still not extremely much. So it probably takes "a bit" more than Pyotherside. Edit2: If I'm counting correctly a hello world pyqt5 takes around 14mb. Edit3: Are you supposed to use qmlscene with pyotherside? Because that will use the same amount of memory as pyqt. |
Re: Sailfish SDK Alpha Qt5 released
Quote:
|
Re: Sailfish SDK Alpha Qt5 released
Quote:
Also there is other reason I prefer the later. That is license issues... Btw if gpodder who has ALOT of pythonqt code can be converted I think other apps can be. |
Re: Sailfish SDK Alpha Qt5 released
As thp says in his blog article about PyOtherSide :
Quote:
But developers want and need freedom and options. Let remember that many Python mobile developers have only some hours per week or month to develop as a hobby, so if there are tools easier to migrate (from Maemo/MeeGo/PC) to Sailfish, they will want them. Some of the Python softwares could be developed in C/C++, but then it would take more developing time and some would not be finished at all. And please, stop saying mobile Python developers are lazy. They contributed and will contribute with a lot of free and open source softwares for Maemo, MeeGo, Sailfish, etc. |
Re: Sailfish SDK Alpha Qt5 released
Quote:
There is also other stuff that may involve porting. Going from Python2 => python3. And btw. We definitively not need too many alternatives librarys IMHO. Especially not on embedded linux. It only leads to massive package dependies hell that we know of in the Linux on desktop :( |
Re: Sailfish SDK Alpha Qt5 released
Quote:
You can never have enough libraries available - library availability is what makes or breaks a platform for developers. Also the more libraries are are available in the repositories, the less crap developers have to bundle, meaning smaller packages and less security vulnerabilities caused by outdated bundled libs. |
Re: Sailfish SDK Alpha Qt5 released
Quote:
But when there are big transitions like now people still want to use old deprecated librarys even if they are not best suited for the job in the longer run... I still is not convinced PyQt is not the best tool for the job. Because if you access so much of the core Qt this days its probadly because the app is using QtWidgets and that stuff will be less and less used also on Linux desktop whenm QtComponents is more stable (that also means less UI fragmentaion between embedded and desktop hopefully..) |
Re: Sailfish SDK Alpha Qt5 released
So I did some testing on memory usage for Qt5 ...
This is memory usage for hello world QML: C++: 14mb Pyotherside: 15.3mb Pyqt5: 17mb The results are calculated by starting the app and run "free", close the app and run free again. So yes Pyotherside takes less memory than Pyqt but not much. The C++ and Pyotherside apps were running of this code: Code:
#include <QGuiApplication> |
Re: Sailfish SDK Alpha Qt5 released
Quote:
|
Re: Sailfish SDK Alpha Qt5 released
15Mb for hello world...
I remember when the Nokia n-gage had what, 24mb of ram? |
Re: Sailfish SDK Alpha Qt5 released
Quote:
EDIT: BTW, have you tried to import PyQt from the PyOtherSide Python code ? Might be a nice hack to get fast startup & access to the PyQt non-GUI stuff at the cost of some RAM usage. :) |
Re: Sailfish SDK Alpha Qt5 released
Quote:
More programming languages and tools = more software will be written / ported to Sailfish OS. Package dependencies hell ? Sorry, but hell is Android which doesn't have dependencies at all and the developer has to included everything inside the .apk (Python, Qt, PyQt/PySide/PyOtherSide, NumPy, MatPlotLib, etc). Something that takes 1h developing directly on Nokia N900/N9 (including packaging and sending to repository) can take many hours using full Android SDK on PC. |
Re: Sailfish SDK Alpha Qt5 released
Quote:
PyQt is not deprecated, it is being developed, with PyQt 5.1 version released this month, following the huge Qt 5.x developments. Quote:
I hate programming Fortran, but I think others may need it so I support to have gFortran on Maemo, MeeGo, Sailfish, Ubuntu Touch, etc. Quote:
PyQt allow to use the full Qt API : multimedia, network, SQL, sensors interface, etc. Not only GUI (in Qt Quick or QtWidgets). |
Re: Sailfish SDK Alpha Qt5 released
Quote:
And If X/Y/Z lib is not working with Python 3 it really is time to port them. Again stuff changes. Its 2013 not 2010 were the last 2 series was released. There will happen alot in this area on Linux desktop to. So I dont see why MER or sailfish should add every damn library to an embedded linux platform. I personally will dish those apps/libs for sure. I already doing that on Linux desktop. I could definitivly understand that MER is avoiding as much as possible to make a cleaner embedded Linux dist. And if they later dish Python 2 I don't blame them. But I guess there is plenty of people at TMO that will disagree. Because they don't want to use never libs and instead prefer triplecore CPU and 8Gb RAM so they can run every damn existing library at the same time. Because thats what will happen if X/YZ library and X/Y/Z intepreters has to be run at the same time. We need a stable platform not half million apps "because its cool to have all those old apps" even if they will not integrate well on a 4" screen anyway. I know we can run X/Y/Z desktop application on N9/N900 but how productive is it to run all those apps? Often they also look real crap especially when they use GtkWidgets or QtWidgets instead of modern Tablet/smartphone UI:s. There is another reason to avoid non platform libs. The endusers they doint want to add every damn repository out there just to get one app working. |
Re: Sailfish SDK Alpha Qt5 released
On the other hand it's the multitude of libraries that made the N900 so useful and still has more productivity tools than possibly any other phone. And I prefer gnumeric on the N900 that any of the braindead mobile office suites that barely work except as a viewer because of touch controls.
|
Re: Sailfish SDK Alpha Qt5 released
Quote:
About "old" Python releases : - 2.5.6 was the last Python 2.5 security fix, released on 05/2011; - 2.6 has security fixes until 10/2013. While Python 2.7 : - was released in 07/2010 and it is expected to have new releases until 2015 at least; - it is the current Python version in the majority of current Linux distributions; - is/will be still used in Linux distributions where Python 3.x is/will be the default version. For example, Ubuntu 14.04 will have Python 3.3 as default version, but Python 2.7.x will still be available in repository as many modules are still in version 2.7. Some of Python modules have hundreds of thousands of source-code lines, the migration task takes more than a year. From what I see in Mer/Nemo repositories, I bet new Sailfish SDK will have Python 2.7.5 as default and Python 3.3 available to install. Quote:
|
| All times are GMT. The time now is 13:12. |
vBulletin® Version 3.8.8