[SOLVED] QTreeView over QWidget
-
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.
-
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 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.