Results 1 to 15 of 15

Thread: Getting the value from a spinbox

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2007
    Location
    Rakovnik, Czech Republic
    Posts
    175
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    43
    Thanked 3 Times in 3 Posts

    Default Re: Getting the value from a spinbox

    whatup X-

    try:

    Qt Code:
    1. qDebug("X = %d",X);
    To copy to clipboard, switch view to plain text mode 

    your "X" variable is an int

  2. The following user says thank you to vonCZ for this useful post:

    X-man (28th September 2007)

  3. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: Getting the value from a spinbox

    With
    Qt Code:
    1. qDebug() << X;
    To copy to clipboard, switch view to plain text mode 
    there would be no such problem..
    J-P Nurmi

  4. The following user says thank you to jpn for this useful post:

    X-man (28th September 2007)

  5. #3
    Join Date
    May 2007
    Location
    Athens, Greece
    Posts
    10
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    2

    Smile Re: Getting the value from a spinbox

    You are both right - i accidentally fixed when I turner all the v's to floats. So now everything works like a charm...

    ...till everything stops working again.

    Thanks for your replies, (unfortunately) I will get back with more questions

    X-man

Similar Threads

  1. spinbox
    By mickey in forum Newbie
    Replies: 5
    Last Post: 26th July 2006, 19:09
  2. spinbox
    By mickey in forum Newbie
    Replies: 2
    Last Post: 22nd May 2006, 08:35
  3. buttonGroup and spinBox
    By mickey in forum Newbie
    Replies: 9
    Last Post: 21st May 2006, 17:50
  4. problem with spinbox control ?
    By vinod in forum Qt Programming
    Replies: 3
    Last Post: 19th April 2006, 19:58
  5. a simple question: spinbox
    By mickey in forum Newbie
    Replies: 3
    Last Post: 27th February 2006, 15:37

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.