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] QTreeView over QWidget
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] QTreeView over QWidget

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.6k 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
    tucnak
    wrote on last edited by
    #1

    Hi, QtDN community!

    Today I got a task for my project - I need to create something like Locator in Qt Creator. AFAIK, it uses QTreeView to display search entries.

    I need to implement it:
    !http://habrastorage.org/storage2/8c7/899/85b/8c789985b4e136ff9840a6ac334a0e2d.png(photo)!

    QTreeView must be displayed over MainWindow (like QMenu). How can I get this effect?

    Thanks in advance.

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

      Just create it without a parent, and position it manually.

      That will take care of the displaying part. Making it work like a popup requires some more work.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tucnak
        wrote on last edited by
        #3

        [quote author="Andre" date="1340915142"]Just create it without a parent, and position it manually.

        That will take care of the displaying part. Making it work like a popup requires some more work. [/quote]

        Andre, thanks for the really fast reply. I haven't ever thought that it can be done in this way.

        Thanks. Solved.

        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