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. How to make QFileDialog a child of QQuickView (centered over its window)
Qt 6.11 is out! See what's new in the release blog

How to make QFileDialog a child of QQuickView (centered over its window)

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 737 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.
  • S Offline
    S Offline
    silviubogan
    wrote on last edited by
    #1

    Hello.

    I use Qt 5.2 and Qt Quick 2. The only window in my application is a QQuickView which is a subclass of QWindow, not of QWidget, so if I want to use in my app a QFileDialog (to give the user the option to save a file) I don't know how to set its parent to be the QQuickView. I know it would work without setting its parent, but if I set its parent, the dialog is centered over its parent window, and this is what I want. Otherwise this would not be a huge problem on its own, but on my system (Ubuntu 13.10) the QFileDialog sometimes appears under the QQuickView window and the only thing the user sees is a "flashing" taskbar item, and he also sees that the QQuickView does not react to mouse clicks (QFileDialog is modal).

    Thank you.

    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