Results 1 to 2 of 2

Thread: Basic Qt Questions

  1. #1
    Join Date
    Aug 2009
    Location
    coimbatore,India
    Posts
    314
    Thanks
    37
    Thanked 47 Times in 43 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Basic Qt Questions

    hi all,
    1) how to find the value of a variable , in debugging mode.
    (like immediate window in vb6.0 or WATCHES)

    2) how to apply HEX codes directly in QT CREATOR.
    ex
    im using the following code to set the window color stored db.
    The value is in should be in HEXcode. but my db contains the corressponding DECIMAL CODE.

    pal.setColor(win1->backgroundRole(),q.value(6).toInt());

    i will store the hexcode in db. and i want to set the correspondin color to the form.

    how to read the hexcode frm db and set the color in QT?

    Thanks
    Bala

  2. #2
    Join Date
    Aug 2009
    Posts
    44
    Thanks
    29
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Basic Qt Questions

    Quote Originally Posted by BalaQT View Post
    hi all,
    1) how to find the value of a variable , in debugging mode.
    (like immediate window in vb6.0 or WATCHES)
    in console you can get debug info with
    Qt Code:
    1. qDebug() << yourVar;
    To copy to clipboard, switch view to plain text mode 

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

    BalaQT (25th September 2009)

Similar Threads

  1. a basic questions!!
    By unix7777 in forum Newbie
    Replies: 1
    Last Post: 28th March 2009, 20:10
  2. Who gets questions answered and who doesn't?
    By gjshannon in forum General Discussion
    Replies: 15
    Last Post: 19th March 2009, 22:02
  3. Where can I get basic WebKit software?
    By crazymoonboy in forum General Discussion
    Replies: 1
    Last Post: 4th September 2008, 15:15
  4. Memory management questions (im new to Qt)
    By scarvenger in forum Qt Programming
    Replies: 2
    Last Post: 6th May 2007, 08:41
  5. Qt related questions and thoughts about getting job
    By AlexKiriukha in forum General Discussion
    Replies: 4
    Last Post: 26th January 2006, 13:25

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.