Results 1 to 13 of 13

Thread: How do i close a buttonless dialog.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2010
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How do i close a buttonless dialog.

    Thanks for the reply MarkoSan.

    I thought about the timer idea, but since I will be removing local files, it would be difficult to determine how long to wait for the timeout. I could run some test with a stopwatch, but the cache size on disk will change depending on what is cached.

    I do however, greatly appreciate the idea

    For the moment, I have it working even if it is a bit on the hackish side.

  2. #2
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: How do i close a buttonless dialog.

    Hmm, then create a list of files to be deleted, from every entry create a qfile object and then call QFile::remove() method. This method returns bool (true if delete was sucessfull, false if faled, I think). The described result is added to another QList (resultList) and if every entry in result is true, close window, otherwise ...
    Qt 5.3 Opensource & Creator 3.1.2

Similar Threads

  1. Delete/Close Dialog correct?
    By kei in forum Qt Programming
    Replies: 8
    Last Post: 2nd July 2009, 13:51
  2. Close Dialog in showEvent
    By pospiech in forum Qt Programming
    Replies: 3
    Last Post: 11th April 2008, 15:32
  3. Block close dialog
    By Mrdata in forum Newbie
    Replies: 2
    Last Post: 12th March 2007, 15:39
  4. Replies: 2
    Last Post: 5th February 2007, 17:42
  5. Replies: 3
    Last Post: 23rd July 2006, 18:02

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
  •  
Qt is a trademark of The Qt Company.