Results 1 to 20 of 20

Thread: qt windows help needed

  1. #1
    Join Date
    Jan 2006
    Posts
    52
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default qt windows help needed

    hi

    i'm new to qt programming. just dl the opensource edition. i use windows and i'm very interested if there is anything remotely like kdevelop for windows, or at the very least a good free editor.

    second point:
    i myself am very impressed with the quality documentation that came with qt, in the form of qt assistant . but i'm looking for an article about the underlying architecture of signal and slots. to what code the macros are translated, and what exactly is moc doing behind the scenes.

    any help appreciated.

    thanks a lot

    dave

  2. #2
    Join Date
    Jan 2006
    Location
    England
    Posts
    20
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qt windows help needed

    I use Code::Blocks myself in Windows. If you look on the forums on their site you can find tutorials to set it up to use Qt.

  3. #3
    Join Date
    Jan 2006
    Posts
    52
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qt windows help needed

    thanks corran.

    just dl c::b and manage to run a couple of tutorials from qt assistant. works great.

    as to my second question. anyone?

  4. #4
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qt windows help needed

    Quote Originally Posted by dave
    hi

    i'm new to qt programming.
    just dl the opensource edition. i use windows and i'm very interested if there is anything remotely like kdevelop for windows, or at the very least a good free editor.
    You can try to use DevC++ but is very far to KDevelop power.

    second point:
    i myself am very impressed with the quality documentation that came with qt, in the form of qt assistant . but i'm looking for an article about the underlying architecture of signal and slots. to what code the macros are translated, and what exactly is moc doing behind the scenes.
    In the main page of Qt Documentation you can see the section Core Features. The first two links in this section are what you looking.

    Bye and good QT Programming
    A camel can go 14 days without drink,
    I can't!!!

  5. #5
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qt windows help needed

    If you really want to understand signal and slots mechanism the source code of moc is distributed along the open source edition...
    Current Qt projects : QCodeEdit, RotiDeCode

  6. #6
    Join Date
    Jan 2006
    Location
    Kranj, Slovenia
    Posts
    34
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Unhappy Re: qt windows help needed

    Quote Originally Posted by dave
    just dl c::b and manage to run a couple of tutorials from qt assistant. works great.
    How did you set c::b to work with Qt? I use qt 4.1 and MinGW on WINXP, but I can not set it to compile my appl. using "make" I did it, but c::b does not find header files... what do I have to link and where to link them (in Code::Blocks?

    do you have to use #include <QtCore.h> or is it OK to use #include <QtCore>?

    Regards!
    Luka

  7. #7
    Join Date
    Jan 2006
    Location
    Iasi, Romania
    Posts
    10
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qt windows help needed

    On the CodeBlocks forum I have found this thread which helped me, especially the last post.
    The problem with the folders I have solved by editing the qt.cbp file in the templates dir changing the lines that look like this:
    <Add directory="$QTDIR/include/Qt/QtGui"/>
    into
    <Add directory="$QTDIR/include/QtGui"/>
    an so on for all lines under <compiler>. Now each time I start a new Qt project the compiler searches in the right directories.

  8. #8
    Join Date
    Jan 2006
    Location
    Kranj, Slovenia
    Posts
    34
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Thumbs up Re: qt windows help needed

    Beside that I inserted some missing directories and now it is working... almost as good as I dreamed

    Tnx for a fast and good reply! Problem is solved!
    BTW: the link is not working (at least not at the moment)... But thanks anyway!

    Regards,
    Luka

  9. #9
    Join Date
    Jan 2006
    Location
    Poznań, Poland
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Post Re: qt windows help needed

    I once saw a page with a description of installing Qt support in Eclipse.org with CDT. Unfortunately I can't find the page now... The process was anyway described for the old Qt3
    PS. Thanks for the information about c::b. I got enough of vi...
    Last edited by tomek; 13th January 2006 at 00:00.

  10. #10
    Join Date
    Jan 2006
    Location
    Athens - Greece
    Posts
    219
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qt windows help needed

    Quote Originally Posted by whoops.slo
    Beside that I inserted some missing directories and now it is working... almost as good as I dreamed

    Tnx for a fast and good reply! Problem is solved!
    BTW: the link is not working (at least not at the moment)... But thanks anyway!

    Regards,
    Luka
    See a couple of workarounds to the lack of out of the box qt support of Code::Blocks.
    http://forums.codeblocks.org/index.php?topic=615.0
    http://forums.codeblocks.org/index.php?topic=1470.0

  11. #11
    Join Date
    Jan 2006
    Location
    Athens-Greece
    Posts
    15
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qt windows help needed

    I just downloaded code::blocks and it just works out of the box.
    If there weren't noobs there would be no experts

  12. #12
    Join Date
    Jan 2006
    Location
    Athens - Greece
    Posts
    219
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qt windows help needed

    Quote Originally Posted by cioannou
    I just downloaded code::blocks and it just works out of the box.
    Have you tried to compile any files that need to be meta compiled first?
    Edit: Judging from this post you have the problems I thought you would
    Last edited by yop; 17th January 2006 at 08:14.

  13. #13
    Join Date
    Jan 2006
    Location
    Athens-Greece
    Posts
    15
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qt windows help needed

    Quote Originally Posted by yop
    Have you tried to compile any files that need to be meta compiled first?
    Edit: Judging from this post you have the problems I thought you would

    Don't know what meta compiled is.

    Sometimes I get the error you saw , sometimes I don't.

    The error happens in linking, so I can compile my application inside code::blocks and check for any errors, If I get the vtable reference error then I know I have to manually run qmake & mingw32-make
    If there weren't noobs there would be no experts

  14. #14
    Join Date
    Jan 2006
    Location
    Athens - Greece
    Posts
    219
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qt windows help needed

    Just try the workaround I gave you in that post, it works
    The meta compiling is what gives you all those moc something files
    Last edited by yop; 17th January 2006 at 08:28.

  15. #15
    Join Date
    Jan 2006
    Location
    Winnipeg, MB. Canada
    Posts
    17
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qt windows help needed

    I use Visual C++ 2005 Express. C::B is decent, but it's code completion sucks and I hate looking up class members so good completion is an essential feature for me.

  16. #16
    Join Date
    Jan 2006
    Location
    Athens - Greece
    Posts
    219
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qt windows help needed

    Quote Originally Posted by rh
    I use Visual C++ 2005 Express.
    With Qt 4.0? I think that only mingw is supported with open source edition. And you're right code completion is far from complete in Code::Blocks. Anyway the IDE to use is a matter of personal preference in most cases and the discussion could be endless.

  17. #17
    Join Date
    Jan 2006
    Location
    Winnipeg, MB. Canada
    Posts
    17
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qt windows help needed

    Quote Originally Posted by yop
    With Qt 4.0? I think that only mingw is supported with open source edition.
    Yes, with the free version of Qt. Under VSC++E, use the makefile project and you can use whatever compiler you specify.

  18. #18
    Join Date
    Jan 2006
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qt windows help needed

    Hi,
    just to say that one of yop's links was available only to registered members. You can find a kind of resumee here
    http://forums.codeblocks.org/index.php?topic=787.0
    I hope it helps.
    Luca

  19. #19
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: qt windows help needed

    Quote Originally Posted by rh
    Yes, with the free version of Qt. Under VSC++E, use the makefile project and you can use whatever compiler you specify.
    Hi,

    Do you have perhaps the current patch for VSC++E?
    I tried to download it from sourceforge, but it allways downloads a bad zip file(tried from a lot of mirrors), from which i can only extract two files (the bcc bat files).
    http://sourceforge.net/project/showf...group_id=49109

    It will be great if someone here could download it and post it here...

    Thanks

  20. #20
    Join Date
    Jan 2006
    Location
    Winnipeg, MB. Canada
    Posts
    17
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qt windows help needed

    @high_flyer:

    What i meant when i said "you can use whatever compiler you specify" was you can use whatever compiler you want for general C++ programming.

    Specifically for Qt, i have tried the various msvc patches, but have not got them to work. For now i've given up and just use mingw (through VC++E) on windows.
    Plan? There ain't no plan!

Similar Threads

  1. Qt Jambi, deploying app on Mac & Windows fails
    By ChrisColon in forum Installation and Deployment
    Replies: 2
    Last Post: 16th February 2009, 22:05
  2. Replies: 5
    Last Post: 15th January 2009, 09:03
  3. Opening text file fails after autostartup on windows
    By yogourta in forum Qt Programming
    Replies: 2
    Last Post: 18th October 2008, 03:52
  4. Windows not appearing in XP.
    By beardybloke in forum Qt Programming
    Replies: 7
    Last Post: 24th October 2007, 17:32
  5. Multiple Windows -> Advice needed
    By vokal in forum Newbie
    Replies: 2
    Last Post: 8th January 2007, 08:40

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.