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 show the fileDialog window on top of all windows

How to show the fileDialog window on top of all windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
qfiledialog
2 Posts 2 Posters 515 Views
  • 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.
  • C Offline
    C Offline
    ChiaoHuang
    wrote on last edited by
    #1

    Hi everyone,
    I use QT 5.6.3 now.
    I'd like to create a QT application on my board.
    It should be full screen and no weston toolbar.
    Therefore, I add this to MainWindow::MainWindow function.

        ui->setupUi(this);
        setWindowFlags(Qt::Window);
        showFullScreen();
    

    alt text

    I'd like to use QFileDialog to select files.
    When it shows the fileDialog window, the weston toolbar will display also.
    like this:
    alt text

    When I touch the MainWindow part, the fileDialog window will disappear.

    I have two questions.

    1. How to show the fileDialog window and no weston toolbar?
    2. How to show the fileDialog window on top of all windows?

    Thanks

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2
      1. I don't know.
      2. You need to set the dialog to be "ApplicationModal" or set "modal" property: https://doc.qt.io/qt-5/qdialog.html#modal-prop

      (Z(:^

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved