Bennieboj
11th November 2011, 14:45
Hi everyone,
First of all, I didn't know where to put this. I was stuck inbetween newbie forum and the normal qt programming forum. So if needed, feel free to move this topic.
The situation: I have made a chess program (coded in c++, made in MSVS2010) user input is handled by a simple commandline interface.
Now I wanted to port this to Qt, using the model/view paradigm.
I already studied the model/view paradigm with the normal model classes (like QAbstractTableModel etc, and classes inhereted from that one), which works fine.
The problem: I can't get this to work on my own code... I have an array of pointers to my chess pieces (I currently only use pawns) in my gameboard class. I don't get how to make my model and view not get it to work with my previous c++ code.
Can someone help me with this please?
First of all, I didn't know where to put this. I was stuck inbetween newbie forum and the normal qt programming forum. So if needed, feel free to move this topic.
The situation: I have made a chess program (coded in c++, made in MSVS2010) user input is handled by a simple commandline interface.
Now I wanted to port this to Qt, using the model/view paradigm.
I already studied the model/view paradigm with the normal model classes (like QAbstractTableModel etc, and classes inhereted from that one), which works fine.
The problem: I can't get this to work on my own code... I have an array of pointers to my chess pieces (I currently only use pawns) in my gameboard class. I don't get how to make my model and view not get it to work with my previous c++ code.
Can someone help me with this please?