Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Topics and classes to learn for visualizing several sorting algorithms on the same layout ?
Forum Updated to NodeBB v4.3 + New Features

Topics and classes to learn for visualizing several sorting algorithms on the same layout ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 287 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NarekMeta
    wrote on last edited by
    #1

    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 :)

    JonBJ 1 Reply Last reply
    0
    • N NarekMeta

      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 :)

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @NarekMeta
      So a quick answer is that you will be using QLayouts. 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 from QWidget can be added onto a layout via QLayout::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!

      1 Reply Last reply
      2
      • N Offline
        N Offline
        NarekMeta
        wrote on last edited by
        #3

        Yeah, documentations is awesome.
        Thanks for the guide.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved