Results 1 to 4 of 4

Thread: a simple question: spinbox

  1. #1
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default a simple question: spinbox

    Hi, Ihave my app with a Qdialog design from QTDesigner. Inside myDialog I have put many spinbox. When I invoke myDialog and check some spinbox, I'd like the dialog remember the spinbox checked the next time! Does QT provide to this? Thanks
    Regards

  2. #2
    Join Date
    Feb 2006
    Location
    Kirovohrad, Ukraine
    Posts
    72
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Re: a simple question: spinbox

    What does "checked spinbox" mean? Did you mean either of:
    • QSpinBox, which has focus
    • QCheckBox, whose checkState() == Qt::Checked

  3. #3
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default Re: a simple question: spinbox

    the second choice...
    Regards

  4. #4
    Join Date
    Feb 2006
    Location
    Kirovohrad, Ukraine
    Posts
    72
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: a simple question: spinbox

    Ok. Now the other question: what do you mean by saying
    Quote Originally Posted by mickey
    next time
    Do you mean the next time your application will run or the next time myDialog will be popped up?
    In the first case you should save checkbox states before finishing your application and restore them on application startup. Try QSettings.
    In the later case you should preserve the first instance of your dialog after the first creation of it.

Similar Threads

  1. Simple RegExp Question...
    By jared.carlson23 in forum Newbie
    Replies: 1
    Last Post: 4th July 2008, 15:10
  2. a simple noob question
    By wrproject in forum Newbie
    Replies: 1
    Last Post: 2nd July 2008, 00:25
  3. QTextEdit simple question
    By Marcopolo in forum Qt Tools
    Replies: 4
    Last Post: 11th October 2007, 01:01
  4. simple question on Class-Members
    By mickey in forum General Programming
    Replies: 7
    Last Post: 4th February 2006, 23:37
  5. QTextEdit Qt4: simple question
    By TheKedge in forum Qt Programming
    Replies: 4
    Last Post: 18th January 2006, 13:03

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.