Results 1 to 4 of 4

Thread: Create and Use a status dialog

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2016
    Posts
    5
    Thanks
    4
    Qt products
    Qt5
    Platforms
    Windows

    Default Create and Use a status dialog

    I would like to create and use a dialog to hold user and application status. Similar in nature to the progress bar, but using words. The dialog itself is is a QTextEdit set to read-only. What would be the best way to get information to the dialog, both from other Qt dialogs (e.g. mouse pick information) and analysis code (e.g. information where at in an algorithm).

    Thanks!

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Create and Use a status dialog

    I would implement slots in the dialog to receive information and update the dialog's text. Create signals in the application that are emitted when the status changes. When you create the dialog, connect those signals to the proper slots in the dialog.

    When you show the dialog, be sure you do it using show() and not exec(), otherwise the dialog will be modal and you will not be able to interact with anything else in your app.

  3. The following user says thank you to d_stranz for this useful post:

    JAD (29th January 2016)

Similar Threads

  1. how to create circular dialog
    By Askar in forum Qt Programming
    Replies: 1
    Last Post: 24th April 2012, 17:34
  2. Replies: 3
    Last Post: 8th July 2010, 07:41
  3. Create a numeric keypad Dialog
    By gt.beta2 in forum Newbie
    Replies: 11
    Last Post: 27th January 2009, 16:40
  4. How to create a save as dialog box?
    By gurinder in forum Qt Programming
    Replies: 1
    Last Post: 6th February 2008, 13:01
  5. how to create a popup dialog
    By Morea in forum Qt Programming
    Replies: 1
    Last Post: 19th November 2006, 16:40

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.