maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   PyQT/QT Designer Test & Assisstance Needed (https://talk.maemo.org/showthread.php?t=83665)

ammyt 2012-04-15 19:11

PyQT/QT Designer Test & Assisstance Needed
 
1 Attachment(s)
Hello folks!

So I've created this small UI for the upcoming NITDroid Installer, and I am actually familiarising myself more with QT and believe it or not, I didn't think it is that good!

I generated the proper python layout from the .ui, and created the main.py which would execute the program itself, and everything works super sweet on my Windows PC, but running the main.py launches a rather disturbing result, graphical glitches everywhere, checkboxes out of scale, and the progressbar not appearing.

Can somebody please guide me on what to do next? I have read all documentations here and in the wiki, and from what I got, it should be as simple as python main.py from Xterminal, but apparently, it isn't...

ammyt 2012-04-15 19:12

Re: PyQT/QT Designer Test & Assisstance Needed
 
Run NITDroid-Installer.py on your PC, try to run it on your N900, and look at the BIG difference.

ammyt 2012-04-15 20:09

Re: PyQT/QT Designer Test & Assisstance Needed
 
bump........

Estel 2012-04-15 20:12

Re: PyQT/QT Designer Test & Assisstance Needed
 
2 bumps in a time interval less than 1 hour? Really?

ammyt 2012-04-15 20:18

Re: PyQT/QT Designer Test & Assisstance Needed
 
Quote:

Originally Posted by Estel (Post 1192546)
2 bumps in a time interval less than 1 hour? Really?

Ummm...I only see one bump, from 10:11 till 11:09 which is a period of 58 minutes, close enough :P
Yea I understand that this development stuff isn't browsed a lot...

MartinK 2012-04-15 21:27

Re: PyQT/QT Designer Test & Assisstance Needed
 
IIRC there is no mobile-optimized Qt widget theme on Harmattan (N9), so some default (desktop ?) theme gets used, with horrible results due to the screen size.

I see basically two possible solutions:
  1. Tweak the UI manually until it's usable - some projects have done just that.
  2. use QML + Qt Components instead - thats what most people use on Harmattan from both native C++ code and Python.

ammyt 2012-04-15 21:34

Re: PyQT/QT Designer Test & Assisstance Needed
 
Quote:

Originally Posted by MartinK (Post 1192569)
IIRC there is no mobile-optimized Qt widget theme on Harmattan (N9), so some default (desktop ?) theme gets used, with horrible results due to the screen size.

I see basically two possible solutions:
  1. Tweak the UI manually until it's usable - some projects have done just that.
  2. use QML + Qt Components instead - thats what most people use on Harmattan from both native C++ code and Python.

I am actually trying to get that on the N900, and I guess I should go with option 1. I just need some guru guiding me what should I actually change.

Saturn 2012-04-15 21:39

Re: PyQT/QT Designer Test & Assisstance Needed
 
1 Attachment(s)
Some minor changes to the ui file.

ammyt 2012-04-15 21:44

Re: PyQT/QT Designer Test & Assisstance Needed
 
Quote:

Originally Posted by Saturn (Post 1192575)
Some minor changes to the ui file.

OMG I was just about to try packing the widgets in layouts, but you did that just now, will try that.

fasza2 2012-04-15 22:22

Re: PyQT/QT Designer Test & Assisstance Needed
 
It looks ok with these values:
35)self.groupBox.setGeometry(QtCore.QRect(110, 170, 500, 150))
38)self.checkBox.setGeometry(QtCore.QRect(0, 50, 220, 40))
41)self.checkBox_2.setGeometry(QtCore.QRect(270, 50, 220, 40))

though you might wanna adjust them to your liking.


All times are GMT. The time now is 05:17.

vBulletin® Version 3.8.8