-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build with Qt5 #6
Conversation
Thanks for adjusting it for qt5. It is also great that you removed that alsa code, it was really out of place. I will pull this once I verify that it builds on my system, which will happen when I get around to setting up qt5 (might take a while). |
I have modified the sound code in a way that works for me (on linux). No idea if it breaks something on other platforms. |
Do you mean my commit for sound not work for you? |
It didn't work apparently because QMediaPlayer cannot play files embedded in the executable. In the Qt4 version the sound files were embedded on Linux but not on the other platforms, so this problem could not have affected you. In my current version sound files are never embedded. However, I have also simplified the surrounding code, so I cannot tell if it still works on platforms other than Linux (although it should). |
OK, could you paste your commit somewhere? Then I can test it on Mac. BTW, QtMultiMedia is not available on Qt4. |
It is in branch qt5 in my repo: |
OK, I see, my commits are there, but you didn't use github to accept them, ^_^. I will close this request then. |
The web interface would have pulled them into the master branch, which was not your intention. |
Yes, when I pushed this request, there was no qt5 branch yet. I guess we could edit them. |
When would the qt5 branch become the master? On Fri, May 3, 2013 at 2:32 AM, Liang Qi notifications@github.com wrote:
|
I have no intention to maintain the Qt4 branch, so after a little testing of the Qt5 version in online games I intend to make it master. |
Ok, checking on windows. Had to change Q_WS_WIN to Q_OS_WIN and now it starts but connecting to IGS gets this. setGeometry: Attempt to set a size (180x100) violating the constraints(180x100 - 114x81) on window 'QMessageBoxClassWindow'. |
On Friday 03 May 2013 10:47:51 oren740 wrote:
Regarding the runtime error, Qt5 seems more strict in handling lists than Qt4. |
The callstack leaves qgo code here. void FilteredView::setModel ( ListModel * model ) On setModel, we crash. On HOST_NOT_FOUND, the preprocessor on windows is setting it out to (10000 + 1001) and I get complaints about that. Not sure exactly why yet, but working around it for now. |
The models for the player and game lists do indeed use QList a lot, and do not I thought that this was not a problem assuming that the views always supply Without being able to reproduce it (I can connect to IGS without problems) I |
Worked more on this than I should have right now, but the listview is just bombing out when items is 0. I'm not sure if this is a qt problem or qgo problem. I'm really surprised it's not an issue failing the assert on linux. |
It is an issue (and I had to fix it in the goban rendering code), but I haven't |
QModelIndex ListModel::index ( int row, int column, const QModelIndex & ) const Players and GameList setModel calls through here when items is still empty. Any idea how to handle this correctly? |
Ok, moved the setmodels for both to the player recv and game receive functions and that worked. But now selecting a game causes similar bad behavior on board layout. |
Ok, I got it to work a stupid way. Build release... so I have to ask, are you doing release or debug builds? |
@oren740: HOST_NOT_FOUND is used in one more place, please check that. ListModel::index normally should not be called when "items" is empty, because I tried both debug (on amd64) and release (on i686), and both work for me. BTW, I replaced Q_WS* by Q_OS* in my branch. |
At least after my 3(or 2) commits(based on a5092bd), it compiles well with Qt 5.(Only tested on Mac OS X 10.8.2, with Qt 5.0.2 open source release.)
These changes are not targeted the master branch. I'd like to see the qt5 branch in main repo.