Monday, 19 August 2013

(Qt C++) HUGE "Grid" of PushButtons lags awfully, buttons can't be enabled

(Qt C++) HUGE "Grid" of PushButtons lags awfully, buttons can't be enabled

In my project, I have 256 tiny PushButtons in one 16x16 grid layout. (Yeah
that took forever.) Editing and running my program now is very laggy.
Also, for some strange reason, Qt will not let me enable any of the
buttons, but other buttons to the side work just fine?
Is there any easy way to determine which square of the grid was clicked
without having a bunch of buttons? (Like following the cursor over an
image maybe?????)
Also, when each "square" of the grid is clicked, it becomes the
"selection" and it needs to be the only "square" selected. (Think about it
like a huge chess board)
Later on, I will need to do this again for a 54x54 size grid (2916
buttons) and I REALLY don't want to do it button by button.
Thanks for your time, I hope you understand my question :)

No comments:

Post a Comment