Results 1 to 6 of 6

Thread: need help in qt code

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: need help in qt code

    A variable needs to be of some type..
    you cannot simply write
    xyz = something; You need to define what type of is xyz, is it int, QString, QWidget etc...

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: need help in qt code

    To answer your question of where to add it:

    Qt Code:
    1. #ifndef BYTECONVERTERDIALOG_H
    2. #define BYTECONVERTERDIALOG_H
    3.  
    4. #include <QDialog>
    5.  
    6. class byteConverterDialog : public QDialog
    7. {
    8. Q_OBJECT
    9.  
    10. public:
    11. byteConverterDialog();
    12.  
    13. private:
    14. // <----------Here.
    15. };
    16.  
    17. #endif // BYTECONVERTERDIALOG_H
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. help! how to code this gui with qt4?
    By khong_fly2008 in forum Qt Programming
    Replies: 4
    Last Post: 6th April 2009, 14:39
  2. Pasting code from code tag in emacs
    By Gopala Krishna in forum General Discussion
    Replies: 0
    Last Post: 16th February 2007, 05:47
  3. use of VC++ code in Qt
    By shailesh in forum Qt Programming
    Replies: 4
    Last Post: 28th April 2006, 11:11
  4. Need help with C++ code!
    By therealjag in forum Qt Programming
    Replies: 4
    Last Post: 20th March 2006, 21:37
  5. C++ code
    By therealjag in forum Newbie
    Replies: 8
    Last Post: 14th March 2006, 19:48

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.