Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 12th, 2005, 10:56 AM   #1
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
Post [Tutorial] PyQT with Qt Designer

I wrote this tutorial for someone who needed it, but I think other people might find it useful because there aren't many tutorials out there covering this.

It basically covers how to design Python GUI programs visually for PyQt. Qt Designer is similar to VB but with a nice interface and it uses a decent language (C++). But this tutorial shows how to use Python instead of C++ with it.

Its in PDF because it contains images and can be obtained here: http://www.savefile.com/files/4098088

If any wants to host it on their server, please do then link it here, because savefile deletes the file after 14 inactive days.

Have fun.

--ColdDeath

EDIT: If someone does want to host it, please PM me and i'll send the HTML version if you prefer it.
__________________
Join us at #programmingforums @ irc.freenode.net!

My software never has bugs. It just develops random features.
coldDeath is offline   Reply With Quote
Old Nov 17th, 2005, 1:52 AM   #2
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
OK here is this tutorial:
HTML: http://cerulean.pyresoft.com/docs/pyqt/
PDF: http://cerulean.pyresoft.com/docs/pyqt/tutorial.pdf

Thanks to Cerulean for the hosting

I hope someone finds some use for it
__________________
Join us at #programmingforums @ irc.freenode.net!

My software never has bugs. It just develops random features.
coldDeath is offline   Reply With Quote
Old Nov 17th, 2005, 3:09 AM   #3
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Pretty neat! I hadn't touched Qt Designer before - looks like its more useful than I thought. I might post up a PyGTK/Glade tutorial that mimics your Qt one, if you don't mind; it would be interesting to compare the two toolkits.
Arevos is offline   Reply With Quote
Old Nov 17th, 2005, 10:38 AM   #4
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
Yeah great!

Its great how you can use that C++ Qt tool to create your Python GUI

Theres nothing more i can add to that tutorial without explaining the functions of every widget and their properties.

If you want to find out about the different Qt classes and widget properties etc.
check these pages:
http://doc.trolltech.com/3.1/index.html
http://doc.trolltech.com/3.1/classes.html (most useful page about classes)

The prototpyes are in C++, but are easily converted into Python, all the names stay the same.

I'll look forward to your tutorial and i'll definately try it out
__________________
Join us at #programmingforums @ irc.freenode.net!

My software never has bugs. It just develops random features.
coldDeath is offline   Reply With Quote
Old Nov 17th, 2005, 11:25 AM   #5
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
That looks really cool . Good work.
Polyphemus_ is offline   Reply With Quote
Old Nov 17th, 2005, 11:28 AM   #6
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by coldDeath
Theres nothing more i can add to that tutorial without explaining the functions of every widget and their properties.
Is the textedit set to read-only in your tutorial? That seems like a sensible and easy addition.
Quote:
Originally Posted by coldDeath
If you want to find out about the different Qt classes and widget properties etc.
check these pages:
I'm probably more familiar with Qt than I am with GTK, actually - but I'm sure your links will be useful to someone else.
Arevos is offline   Reply With Quote
Old Nov 17th, 2005, 11:28 AM   #7
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Funkadelic. Saved - could come in handy if I ever get around to learning this stuff.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Nov 17th, 2005, 12:26 PM   #8
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
Yeah Averos, I should have made it clearer that those links were directed to everyone
__________________
Join us at #programmingforums @ irc.freenode.net!

My software never has bugs. It just develops random features.
coldDeath is offline   Reply With Quote
Old Nov 17th, 2005, 5:34 PM   #9
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Update your links so that they point to the Qt 3.3 ones at least coldDeath ;-).
I personally can't wait for PyQt4 to come out... Qt4 is GPL'd on Windows and PyQt4 will be too, so not only will you have the amazing new text and graphics engine (that will be able to display SVG's automagically in 4.1 - the feature I have wanted most for aeons) available, but your GUI applications in Python created with a toolkit cleaner than wxPython (IMHO) and with better documentation, can be distributed cross platform. You can even charge for a GPL'd application if you provide the user with the right to re-distribute under the terms of the GPL and provide source code too :-)
Cerulean is offline   Reply With Quote
Old Nov 18th, 2005, 1:31 AM   #10
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
Nice I didn't realise it would be GPLed on Windows, that was Qts only bad point (IMHO).

Updated link: http://doc.trolltech.com/3.3/index.html
__________________
Join us at #programmingforums @ irc.freenode.net!

My software never has bugs. It just develops random features.
coldDeath is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:13 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC