pouët.net

Go to bottom

cross-platform cellphone app development

category: code [glöplog]
the only thing that's shitty about Qt is when it comes to Tree/List/Table Widgets together with drag&drop... i ran into some horrible issues there (Qt 4.6.2).
added on the 2010-09-10 11:50:29 by hcdlt hcdlt
hcdlt: Ah, is that still horrible? When I was using Qt 4.2 a while ago I had a whale of a time getting my custom model to work right. There was even some kind of unofficial 'model class tester' you needed to use to make sure your code stood a chance of even remotely working.

Still, the rest of Qt is extremely nice and I'd still recommend it to anyone wanting to do C++ GUI development!
added on the 2010-09-10 12:56:03 by sagacity sagacity
The model based widgets are nice, but let's say "a bit complicated" to work with...

And when I hear MFC I have to puke. And yes. I have worked with MFC...
added on the 2010-09-10 14:01:26 by raer raer
Hm, I've got a quite positive experience with custom models in Qt... But then again, all my models so far have been for read-only purposes...
added on the 2010-09-10 14:24:40 by kusma kusma
it was not so much that it did not work... but with premade models some items seemed to forget almost all of their properties that were not item texts on drag&drop.
and to make my own models was not as smooth as i had expected it to be. ended up rewriting most mimeData ex- and imports as well as the drag and drop event functions myself, avoiding to "move" data, instead copying and then delete manually. but now it works beautifully.
added on the 2010-09-10 14:59:41 by hcdlt hcdlt
Kusma: Ah well, that might be easier to get working. I had basically a treeview where you could move multiple items to different positions and depths in the tree, with undo/redo support. It was awful :)
added on the 2010-09-10 15:38:37 by sagacity sagacity
sagacity: Well, that's where my code is going in the future, so perhaps I'll suffer the same hell as you soon ;)
added on the 2010-09-10 15:42:26 by kusma kusma

login

Go to top