Unsolved Topics and classes to learn for visualizing several sorting algorithms on the same layout ?
-
Hi,
I want to create a desktop app for sorting algorithms visualization: I should get something like layout which will have some widgets on it, each widget will be a visualization of an algorithm on array, and widgets should be added to the layout dynamically. Could you guide me in what topics I should dive into, what classes I should use ?
Note: I am newbie to QT :)
-
@NarekMeta
So a quick answer is that you will be usingQLayout
s.QHBoxLayout
&QVBoxLayout
can be used for simple arrangement horizontally or vertically,QGridLayout
if you want to make an actual row/column grid. Sub-layouts can be added to layouts. Anything derived fromQWidget
can be added onto a layout viaQLayout::addWidget()
. All of this can be done dynamically at runtime.All of these are documented in the manual. Make sure you have read https://doc.qt.io/qt-5/layout.html. It's really reasonably straightforward!
-
Yeah, documentations is awesome.
Thanks for the guide.