Reply
Thread Tools
ammyt's Avatar
Posts: 1,918 | Thanked: 3,118 times | Joined on Oct 2010 @ My pants
#1
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...
Attached Files
File Type: tar PyQT.tar (16.0 KB, 73 views)
 
ammyt's Avatar
Posts: 1,918 | Thanked: 3,118 times | Joined on Oct 2010 @ My pants
#2
Run NITDroid-Installer.py on your PC, try to run it on your N900, and look at the BIG difference.
 
ammyt's Avatar
Posts: 1,918 | Thanked: 3,118 times | Joined on Oct 2010 @ My pants
#3
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#4
2 bumps in a time interval less than 1 hour? Really?
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 
ammyt's Avatar
Posts: 1,918 | Thanked: 3,118 times | Joined on Oct 2010 @ My pants
#5
Originally Posted by Estel View Post
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...
 
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#6
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.
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)
 

The Following User Says Thank You to MartinK For This Useful Post:
ammyt's Avatar
Posts: 1,918 | Thanked: 3,118 times | Joined on Oct 2010 @ My pants
#7
Originally Posted by MartinK View Post
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's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#8
Some minor changes to the ui file.
Attached Files
File Type: zip main_GUI.zip (1.1 KB, 75 views)
 

The Following 2 Users Say Thank You to Saturn For This Useful Post:
ammyt's Avatar
Posts: 1,918 | Thanked: 3,118 times | Joined on Oct 2010 @ My pants
#9
Originally Posted by Saturn View Post
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's Avatar
Posts: 187 | Thanked: 96 times | Joined on Sep 2010 @ London, UK
#10
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.
 

The Following 2 Users Say Thank You to fasza2 For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 15:03.