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. QDialog Embedded in QWidget
Qt 6.11 is out! See what's new in the release blog

QDialog Embedded in QWidget

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hi,

    Is it possible to have a QFileDialog embedded into a QWidget or into another custom QDialog.

    Thanks in advance.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lycis
      wrote on last edited by
      #2

      From my experience this is not possible because a QFileDialog is based on "QDialog":http://qt-project.org/doc/qt-4.8/QDialog.html and QDialog is not intended to be displayed as widget inside another widget, but as a top-level window on its own.

      I don't know about the internals of QFileDialog but maybe it is possible to subclass QFileDialog and expose the internally built widget so you could use it as "stand alone" widget.

      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