Category : grid

I am thinking of coding a layout manager to create desktop UI in C++ so I wonder if anyone knows or has experience in these topics, what is the best approach for a grid/table layout? I have been playing around with QT, GTK, wxwidgets and they all have different approaches in their grid/table layouts. for ..

Read more

I need to fix the code that generates the grid. It should fit in the graphics window. My current is also drawn outside the graphics window and it is not always a regular grid. std::vector<QPoint> Draw::grid(int n, int height){ std::vector<QPoint> points; double a = rand()%100; double b = rand()%100; int size = sqrt(n); points.push_back(QPoint(10,10)); for(int ..

Read more