Page 2 of 2 FirstFirst 12
Results 21 to 24 of 24

Thread: very strange behaviour

  1. #21
    Join Date
    Jan 2006
    Posts
    45
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: very strange behaviour

    These are the flags that are set in the makefile for compiling

    CFLAGS = -pipe -O0 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -Wall -W -g -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
    CXXFLAGS = -pipe -O0 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -Wall -W -g -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT

    Rgx

  2. #22
    Join Date
    Jan 2006
    Location
    Mountain View, CA
    Posts
    279
    Thanked 42 Times in 37 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: very strange behaviour

    Quote Originally Posted by incubator
    I dont understand how that code evne compiles, since when is
    Qt Code:
    1. if (condition1 and condition2) {}
    To copy to clipboard, switch view to plain text mode 

    valid C++ ?

    I thought it should be
    Qt Code:
    1. if (condition1 && condition2) {}
    To copy to clipboard, switch view to plain text mode 
    'and', 'or' and 'xor' are all valid C++. I was suprised when I found out about it too! (it's in the back of The C++ Programming Language by Bjarne Stroustroup). They were added to the language to get around the fact that in some regions of the world, the characters '&', '|' and '^' are not available on the keyboard layout.

    It's probably nice for ex-Pascal programmers too!
    Save yourself some pain. Learn C++ before learning Qt.

  3. #23
    Join Date
    Jan 2006
    Posts
    45
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Wink Re: very strange behaviour

    Hi,

    The solution of the problem was found by a friend of mine who suggested that kdevelop didn't search for the executable in de src directory and that I would probably find the actual executable in this src directory. And indeed there was the executable I was expecting...
    Hope this helps other people with similar problems.
    Does anybody know what I should change in the .pro or Makefile so that kdevelop runs the right executable?

    Rgx

  4. #24
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: very strange behaviour

    Maybe you should change KDevelop's project settings instead?

    But if you insist on changing the project file, you can set a DESTDIR variable and point it to the directory where the binary is to be stored.

  5. The following user says thank you to wysota for this useful post:

    regix (20th July 2006)

Similar Threads

  1. QComboBox +SUSE10.0 +qt4.1 strange behavior
    By antonio.r.tome in forum Qt Programming
    Replies: 6
    Last Post: 20th March 2006, 17:49
  2. Setting behaviour in designer
    By Morea in forum Qt Tools
    Replies: 3
    Last Post: 19th March 2006, 15:33
  3. Different behaviour on different distributions
    By Kumula in forum Qt Programming
    Replies: 17
    Last Post: 6th March 2006, 23:58
  4. Replies: 1
    Last Post: 26th February 2006, 05:52
  5. [Qt 4.1] Strange behaviour with QTableView
    By fane in forum Qt Programming
    Replies: 1
    Last Post: 23rd January 2006, 06:17

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.