Results 1 to 2 of 2

Thread: removing the cancel button from a QProcessDialog

  1. #1
    Join Date
    Dec 2009
    Location
    New Zealand
    Posts
    54
    Thanks
    23
    Qt products
    Qt4
    Platforms
    Windows

    Default removing the cancel button from a QProcessDialog

    Hi, Does anybody know how to remove the cancel button from a QProcessDialog?

  2. #2
    Join Date
    Dec 2009
    Location
    New Zealand
    Posts
    54
    Thanks
    23
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: removing the cancel button from a QProcessDialog

    Ah, I have found the answer:


    progress = new QProgressDialog ;
    progress->setCancelButtonText(0); // makes it so that no cancel button appears.

Similar Threads

  1. Replies: 3
    Last Post: 8th December 2011, 19:21
  2. QDialog, editingFinished, and Cancel Button.
    By jeffpogo in forum Qt Programming
    Replies: 8
    Last Post: 3rd June 2009, 03:22
  3. Replies: 1
    Last Post: 2nd May 2009, 10:01
  4. Cancel last user ever
    By 1111 in forum Qt Programming
    Replies: 2
    Last Post: 28th November 2008, 17:26
  5. How to show QProgressDialog without cancel button
    By rajesh in forum Qt Programming
    Replies: 1
    Last Post: 30th January 2007, 09:53

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.