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 is the best way to make a ui like this?
QtWS25 Last Chance

what is the best way to make a ui like this?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.2k 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.
  • O Offline
    O Offline
    opengpu2
    wrote on last edited by opengpu2
    #1

    link text
    link text
    the important part is the Preview Widget, which contains many small preview rect region there.and those small preview rect region can be Text, Image or Dynamic Direct3D Scene.there 3 preview styles can be dynamically changed.
    and also, i can Drag the small preview rect region to another window.
    thank you!

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      What do you mean the best way to make it?
      It's a toolbar with some menus, tree widget and a list widget. No philosophy there.

      1 Reply Last reply
      0
      • O Offline
        O Offline
        opengpu2
        wrote on last edited by
        #3

        update:)

        1 Reply Last reply
        0
        • Chris KawaC Offline
          Chris KawaC Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on last edited by Chris Kawa
          #4

          You can read about the drag and drop support in Qt here
          As for the other part you can switch the list view to IconMode. This will automatically enable drag and drop and give you the tiled look. Then you create a custom model and provide the previews as images, responding to the Qt::DecorationRole in the data memeber.

          1 Reply Last reply
          0
          • O Offline
            O Offline
            opengpu2
            wrote on last edited by
            #5

            the most difficult point is that have to surpport Direct3D scene(not static image) in the small preview region.
            and these 3 preview styles can be changed dynamically.
            Is QGraphicsView/Scene, QGraphicsItem a good way to do this? render Direct3D in QGraphicsItem, and Text/Image also is showed in the QGraphicsItem.
            cause it is easy to scale, move, ect, the whole preview area.

            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