Results 1 to 2 of 2

Thread: What is the best way to show the user that a state is active?

  1. #1
    Join Date
    May 2006
    Location
    Stockholm, Sweden
    Posts
    81
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default What is the best way to show the user that a state is active?

    Hi!

    I need to show the user that a state is active with some kind of widget.

    As an example:
    The user imports a picture of a face into the program. He or she draws a mustash on the face. At the same moment the user has started the editing of the picture, the widget that showing if the picture is edited is checked. When this widget is once checked it can't be uncheked. The point with this is to letting any other user loading this file knowing if the picture he or she sees is a original or a edited version of the picture.


    I thought that a checkbox should do the job, but the problem is that the user should not be able to change it's state and I can't find any way to make this possible. I found out that a QLineEdit can do something smiliar:
    Qt Code:
    1. /* This makes the lineEdit clickable and selectable but not editable, but I only want to
    2. * to use true/false so QLineEdit would not be my first choice.
    3. */
    4. QLineEdit stateLine;
    5. stateLine.setReadOnly ( true );
    To copy to clipboard, switch view to plain text mode 


    How can I do this with a checkbox? Or do you know about some better widget that I can use?

    thanks
    pir

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: What is the best way to show the user that a state is active?

    disable the checkbox once it is checked.

Similar Threads

  1. Qt application with live Active X camera feed.
    By bitChanger in forum Qt Programming
    Replies: 8
    Last Post: 4th September 2012, 19:26
  2. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 8th March 2006, 23:11

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.