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. What's the best approach for this kind of layout/design?
Forum Updated to NodeBB v4.3 + New Features

What's the best approach for this kind of layout/design?

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 1.4k Views 1 Watching
  • 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.
  • T Offline
    T Offline
    TonyB123
    wrote on last edited by
    #1

    Hi,

    I'm new to Qt and gone through document and various tutorials but I'm missing the experience to get the big picture. I'm using QT Creator on Windows and plan to use Python for the backend. As an exercise to gain experience and also this is close to what I want to start with design wise, I wish something like this
    https://coinmarketcap.com/

    First question is what sort of structure/hierarchy allows for tab buttons "Cryptocurrencies" and Watchlist, and also allows to switch tables in the middle? Here's an example hierarchy that is most probably wrong....
    QWidget/QGridLayout/???/QTreeView
    Is there a ??? or do i do this another way?

    Hope the question makes sense. Thanks for your help.

    VRoninV 1 Reply Last reply
    0
    • T TonyB123

      Hi,

      I'm new to Qt and gone through document and various tutorials but I'm missing the experience to get the big picture. I'm using QT Creator on Windows and plan to use Python for the backend. As an exercise to gain experience and also this is close to what I want to start with design wise, I wish something like this
      https://coinmarketcap.com/

      First question is what sort of structure/hierarchy allows for tab buttons "Cryptocurrencies" and Watchlist, and also allows to switch tables in the middle? Here's an example hierarchy that is most probably wrong....
      QWidget/QGridLayout/???/QTreeView
      Is there a ??? or do i do this another way?

      Hope the question makes sense. Thanks for your help.

      VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      @TonyB123 said in What's the best approach for this kind of layout/design?:

      what sort of structure/hierarchy allows for tab buttons "Cryptocurrencies" and Watchlist, and also allows to switch tables in the middle?

      http://doc.qt.io/qt-5/qtabwidget.html

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      4
      • T Offline
        T Offline
        TonyB123
        wrote on last edited by
        #3

        Excellent thanks!

        A 1 Reply Last reply
        0
        • T TonyB123

          Excellent thanks!

          A Offline
          A Offline
          ambershark
          wrote on last edited by
          #4

          @TonyB123 Ouch bitcoin got wrecked, lol. Off topic I know, but it was 20K at Christmas!

          On to the actual question...

          QTabWidget
             --> QVBoxLayout
                --> QTreeView or QTreeWidget (I use view all the time for the model)
             
          

          Add the treeview to the vboxlayout and the vboxlayout to the tabwidget tab. If you need help with the code just post back and we'll help you out. :)

          Good luck learning Qt, it's super fun!

          My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

          1 Reply Last reply
          3

          • Login

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