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
    Jul 2010
    Posts
    18
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    Windows

    Default Re: need help in qt code

    this is what i got in Compile Output tab
    Qt Code:
    1. Running build steps for project byteConverter...
    2. Configuration unchanged, skipping qmake step.
    3. Starting: "C:/Qt/2010.04/mingw/bin/mingw32-make.exe" -w
    4. mingw32-make: Entering directory `C:/Users/Administrator/Documents/byteConverter-build-desktop'
    5. C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile.Debug
    6. mingw32-make[1]: Entering directory `C:/Users/Administrator/Documents/byteConverter-build-desktop'
    7. g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\2010.04\qt\include\QtCore" -I"..\..\..\..\Qt\2010.04\qt\include\QtGui" -I"..\..\..\..\Qt\2010.04\qt\include" -I"..\..\..\..\Qt\2010.04\qt\include\ActiveQt" -I"debug" -I"." -I"..\byteConverter" -I"." -I"..\..\..\..\Qt\2010.04\qt\mkspecs\win32-g++" -o debug\byteconverterdialog.o ..\byteConverter\byteconverterdialog.cpp
    8. mingw32-make[1]: Leaving directory `C:/Users/Administrator/Documents/byteConverter-build-desktop'
    9. mingw32-make: Leaving directory `C:/Users/Administrator/Documents/byteConverter-build-desktop'
    10. ..\byteConverter\byteconverterdialog.cpp: In constructor 'byteConverterDialog::byteConverterDialog()':
    11. ..\byteConverter\byteconverterdialog.cpp:27: error: 'm_decEdit' was not declared in this scope
    12. ..\byteConverter\byteconverterdialog.cpp:28: error: 'hexEdit' was not declared in this scope
    13. ..\byteConverter\byteconverterdialog.cpp:29: error: 'binEdit' was not declared in this scope
    14. ..\byteConverter\byteconverterdialog.cpp:32: error: 'decEdit' was not declared in this scope
    15. ..\byteConverter\byteconverterdialog.cpp: At global scope:
    16. ..\byteConverter\byteconverterdialog.cpp:70: error: no 'void byteConverterDialog::decChanged(const QString&)' member function declared in class 'byteConverterDialog'
    17. ..\byteConverter\byteconverterdialog.cpp:84: error: no 'void byteConverterDialog::hexChanged(const QString&)' member function declared in class 'byteConverterDialog'
    18. ..\byteConverter\byteconverterdialog.cpp:98: error: no 'void byteConverterDialog::binChanged(const QString&)' member function declared in class 'byteConverterDialog'
    19. mingw32-make[1]: *** [debug/byteconverterdialog.o] Error 1
    20. mingw32-make: *** [debug] Error 2
    21. The process "C:/Qt/2010.04/mingw/bin/mingw32-make.exe" exited with code %2.
    22. Error while building project byteConverter (target: Desktop)
    23. When executing build step 'Make'
    To copy to clipboard, switch view to plain text mode 

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

    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...

  3. #3
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 268 Times in 268 Posts
    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, 15:39
  2. Pasting code from code tag in emacs
    By Gopala Krishna in forum General Discussion
    Replies: 0
    Last Post: 16th February 2007, 06:47
  3. use of VC++ code in Qt
    By shailesh in forum Qt Programming
    Replies: 4
    Last Post: 28th April 2006, 12:11
  4. Need help with C++ code!
    By therealjag in forum Qt Programming
    Replies: 4
    Last Post: 20th March 2006, 22:37
  5. C++ code
    By therealjag in forum Newbie
    Replies: 8
    Last Post: 14th March 2006, 20: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.