Results 1 to 6 of 6

Thread: QFile Dialog doesn't display on the Top

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2017
    Posts
    15
    Qt products
    Qt5
    Platforms
    Windows

    Default QFile Dialog doesn't display on the Top

    I have several Dialogs with window Flags as WindowStaysonTopHint. When I open QFileDialog it displays at the bottom of these dialogs. How to set window Flag for QFileDialog. I use the following code to display the dialog at the top but it doesn't work.

    > QFileDialog *dialog=new QFileDialog();
    >
    > dialog->setWindowModality(Qt::ApplicationModal);
    >
    > dialog->setModal(true);
    > dialog->setWindowFlags(Qt::WindowStaysonTopHint);
    > dialog->getExisitngDirectory(this,tr("Directory"),"\home" ,QFileDialog::ShowDirsOnly);

    Simply, I am looking for a non static get existing directory function.
    Last edited by Veera; 27th September 2017 at 16:18.

Similar Threads

  1. Native QFile Dialog
    By lumpy69 in forum Qt Programming
    Replies: 2
    Last Post: 7th August 2017, 17:44
  2. QFile::remove doesn't work
    By mentalmushroom in forum Qt Programming
    Replies: 10
    Last Post: 25th June 2017, 11:54
  3. qfile dialog error
    By SirJonas in forum Newbie
    Replies: 3
    Last Post: 2nd November 2016, 15:08
  4. Replies: 2
    Last Post: 6th May 2013, 08:06
  5. QFile dialog, native view
    By franco.amato in forum Qt Programming
    Replies: 4
    Last Post: 17th February 2010, 04:15

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.