I think your code is not very well designed, but if it works for you... hey, it's your application.
I think your code is not very well designed, but if it works for you... hey, it's your application.
Then pleas tell my more, it would be to better read or designed, my realy job is kitchen chief... not a qt professional. And i stay here to learn... .. I am only a php guru & webmaster.. on QT book from Molkentin or Blanchette dont say nothing how make code better readable .. Or tell me from all here http://code.google.com/hosting/search?q=label:Qt 94 qt projekt which is better designed. tanks.
It's not only about readability, but also performance and ease of maintenance. I won't design your code because simply I don't know what you want it to doI can give you hints how to obtain a better design and I think I've already given a few in this thread.
patrik08 (21st May 2007)
Witold, My actual book are UML design plattern on italian language
http://www.hoepli.it/libro.asp?ty=&i...07003007&mcs=0
not only Jasmin Blanchette on german...
But all this sample from Sudoku or raw C++ sample dont have any comparison from QT... on C++ any small function must self write to compose a class.. yesterday i look the code from Mac http://webdav.org/goliath/ (2002 last commit) .. to pick idea to my CMS webdav projekt. It have 5 file to build a Thread and Fork to get a listing from dir view http Propfind method 1200 or more line of code.. and i make the same class on 280 line qt code..
What i want to say on QT design plattern ist not simple if you can join a QThread , a QMainwindow , a Qhttp and 3 button and play all on 2 or 1 QTreeView like my projekt http://sourceforge.net/projects/qt-webdav/ ...
On this day i work on a big projekt .. an moore i write and going forward the difficulty was chance from the first day from projekt... I write my class on a simple main .. and if is running ok ... i put the class on a static lib path... at end i have only one or two libs and a QMainwindow , this is my actualy design plattern. I do not know other method.
It's not about design patterns. It's about such simple things as using the event loop correctlyIn your situation I don't know why you are using threads at all...
Bookmarks