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. [Solved] treeWidget with mutiple windows/dialogs -Thanks
Forum Updated to NodeBB v4.3 + New Features

[Solved] treeWidget with mutiple windows/dialogs -Thanks

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 2.7k 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.
  • P Offline
    P Offline
    Paul S
    wrote on last edited by
    #1

    In C++ win32 I'd make a window with treeview and use GetClientRect, GetWindowRect then BeginDeferWindowPos and EndDeferWindowPos to position and size the window.

    When i clicked tree node i'd then use ShowWindow for options.

    I was wondering how i'd go about doing this in Qt.

    Thanks.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      Why don't you, instead of describing how you think you should achieve something, describe what you would like to achieve? If you know how to do it (in your case: using the methods you mention), then what is the point of asking the question? There is no way for us to answer the question in a sane way if you don't tell us about your goals. Note that a sane answer may require suggesting an entirely different approach than what you currently have in mind.

      Refer to the How to ask questions the smart way FAQ, especially "this":http://catb.org/~esr/faqs/smart-questions.html#goal section.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Paul S
        wrote on last edited by
        #3

        Thanks for your reply.
        I did describe my goal but maybe not clear enough.

        Anyways i stated that's for Win32 C++ using the APIs stated above would make it Windows specific only and would defeat the object of even using Qt hense why i asked the question.

        Ok, i'd like a menu like VLC:
        http://img827.imageshack.us/img827/8438/32704643.png
        As you can see it's TreeView on the left using images (in Qt it's called treeWidget).
        When you click the options for example "Audio" it will bring new dialog on the right hand side of treeWidget. This is the goal i'd like to achieve using Qt.

        I will be open to changing to different approach if it's necessary. I never said that i wasn't willing to adapts my coding to Qt's methods.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          OK, it was not clear to me what you wanted to achieve; I am not familiar with the API you mentioned.

          The type of dialog you want, can be achieved using a combination of two widgets: a QListView (or derived class) on the left with the icons, and a QStackedWidget with your pages of settings on the right. Note that you can also use a QTreeView, if you want a tree on the left instead of a list. Put those two widgets in a layout, and you have what you need.

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Paul S
            wrote on last edited by
            #5

            Ok, my apologies on not being very descriptive on my issue I'll bare it in mind for future reference.
            I've now resolved issue. Thank you.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mlong
              wrote on last edited by
              #6

              Be sure and edit the thread title to add [Solved] if it's resolved. Thanks!

              Software Engineer
              My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

              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