C
C
Cerega322015-06-14 16:18:14
Qt
Cerega32, 2015-06-14 16:18:14

Why does my qt program break in the click function?

In my game, the first mouse click is the choice of checkers, the second where the move will be made. But the first time I click, f0eb0e0051924eff88759f95e56a09ce.pngthe program breaks. How to fix it? Please help, please
Link to the project - dropmefiles.com/SMUYd

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
docker1, 2015-06-15
@docker1

mainwindow.cpp, lines 317-320:

while (isAvaliable(x, y) != true) {
    x = se->scenePos().x()/50;
    y = se->scenePos().y()/50;
}

Loop - infinite, isAvaliable never returns true

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question