Page 3 of 4 FirstFirst 1234 LastLast
Results 41 to 60 of 66

Thread: Intro - Warning: BBBOORRRIINNGGG!!!!!

  1. #41
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Intro - Warning: BBBOORRRIINNGGG!!!!!

    Mysota, you make a good point, but in my case I am in a learning process and re-writing designer code is a great learning tool. I also have problems with "ddd" and "gdb" (listing string variables ) so I import my code into KDevelop which has excellent debugging features. Can I import designer code into KDevelop.

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

    Default Re: Intro - Warning: BBBOORRRIINNGGG!!!!!

    Quote Originally Posted by impeteperry
    Can I import designer code into KDevelop.
    What do you want to debug in UI files? uic generates normal C++ classes out of ui definitions, so I don't see a reason not to be able to open them from within KDevelop.

  3. #43
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Intro - Warning: BBBOORRRIINNGGG!!!!!

    Quote Originally Posted by wysota
    What do you want to debug in UI files? uic generates normal C++ classes out of ui definitions, so I don't see a reason not to be able to open them from within KDevelop.
    I'm sorry, I guess i didn't make myself clear. I want to work in an enviroment where I can look at "string " variables. I started programming using KDevelop 2.1 where I had the designer and good debugging facility.. I had trouble understandiny all the options offered in KDevelope 3.1 so I went to Qt designer (trully a great),

    Whether it is O'Reilly's Programming with Qt or C++ Programming With Qt3, my two bibles, I have to actually keyin the examples for the stuff to sink in my thick head and so as I used designer, I tried to duplicate the designer layout with writing the Qt code. This works for my program as I have pretty much a fixed layout. ( the original was a DOS command line engineering graphics program )

    I never could find a way with gdb or ddd to look at string variables!

    I found I could import my hand-coded program into KDevelop3 and see these damm string variables, not on the layout stuff, which is static, but on operational functions. My program is heavy with string variables and stringlists.

    My question was "could a program whose layout was developed in designer, be imported into KDdevelop?

    I see that KDevelop has a designer option, but I have not been able to get it to load.

    If I could get ddd to display string variables and get kwrite to be the default editor I would be happy.

    Sorry to be so long winded,
    pete
    Last edited by impeteperry; 23rd January 2006 at 06:35.

  4. #44
    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: Intro - Warning: BBBOORRRIINNGGG!!!!!

    If you open up QMake tab of your project in KDevelop, you 'll see that there is a FORMS entry. This is where you should put your .ui files (right click, add files) and KDevelop will take care of the rest

  5. #45
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Intro - Warning: BBBOORRRIINNGGG!!!!!

    Quote Originally Posted by yop
    If you open up QMake tab of your project in KDevelop, you 'll see that there is a FORMS entry. This is where you should put your .ui files (right click, add files) and KDevelop will take care of the rest
    Thank you very much I shall try that.
    Any help on "ddd" and string variable?

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

    Default Re: Intro - Warning: BBBOORRRIINNGGG!!!!!

    Quote Originally Posted by impeteperry
    Thank you very much I shall try that.
    Any help on "ddd" and string variable?
    Could you elaborate on the problem a little more? What kind of "string variables" are we exactly talking about? All string variables in a UI definition are visible in the form or in object properties. And after uic does its job, they get wrapped into the C++ class which gets generated, so you can access it like any other class.

  7. #47
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    85
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Intro - Warning: BBBOORRRIINNGGG!!!!!

    I believe he wants to know how to display a QString variable in ddd in readable form:
    Break where your QString is defined as usual. Now type in the command window:
    Qt Code:
    1. print variableNameOfYourQString.toStdString()
    To copy to clipboard, switch view to plain text mode 
    Not perfect, but it works

  8. #48
    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: Intro - Warning: BBBOORRRIINNGGG!!!!!

    Quote Originally Posted by Codepoet
    I believe he wants to know how to display a QString variable in ddd in readable form
    Yeap that's it, we had a similar conversation in http://www.qtcentre.org/forum/showth...=1628#post1628
    Codepoet I love your workaround, I never thought of that, thanks

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

    Default Re: Intro - Warning: BBBOORRRIINNGGG!!!!!

    But what has designer generated code to do with it?

  10. #50
    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: Intro - Warning: BBBOORRRIINNGGG!!!!!

    Quote Originally Posted by wysota
    But what has designer generated code to do with it?
    Nothing, it's just that impeteperry remembered us having this conversation and he asked

  11. #51
    Join Date
    Jan 2006
    Location
    Berlin, Germany
    Posts
    64
    Thanks
    1
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Talking Re: Intro - Warning: BBBOORRRIINNGGG!!!!!

    Quote Originally Posted by wysota
    additionaly you get ui/logic separation.
    Seperating ui and logic as a great, great thing...
    Thats why I write my ui and logic into different classes when hard coding :-)
    LOL

    Katrina

  12. #52
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Intro - Warning: BBBOORRRIINNGGG!!!!!

    Hi Codepoet (what a great name for a programmer )
    Now I have to go back and learn ddd all over again.
    Thanks a lot.

  13. #53
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    85
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Intro - Warning: BBBOORRRIINNGGG!!!!!

    Quote Originally Posted by impeteperry
    Hi Codepoet (what a great name for a programmer )



    DDD is a wonderful tool - have you ever tried using it together with gnuplot? It can plot the contents of your datastructures

  14. #54
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Intro - Warning: BBBOORRRIINNGGG!!!!!

    Thanks Codepoet, but right now I have a "senior moment". I can't seem to get started with ddd. I load my program (pm) from a thrminal with "ddd pm".
    ddd comes up withh my "main.cpp" showing ok, but how in the h... do i get "dlgmain.cpp" to show?
    Even tho I used ddd quite a bit a yeari or so ago, I never quite usderstood the help aids and what I don't use I forget .
    Since you are so high on ddd and there is a clue on displaying string variables I would like to try it a again

    pete

  15. #55
    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: Intro - Warning: BBBOORRRIINNGGG!!!!!

    Quote Originally Posted by impeteperry
    but how in the h... do i get "dlgmain.cpp" to show?
    Even tho I used ddd quite a bit a yeari or so ago, I never quite usderstood the help aids and what I don't use I forget .
    File->Open Source... (with your programm loaded). You ll see all the sourcefiles of your app listed.

  16. #56
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    85
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Intro - Warning: BBBOORRRIINNGGG!!!!!

    yop is right. You only have to take care when you work with plugins - those are not loaded until your program runs / you load them in your code. Just "run" the program untill they are loaded, interrupt and then use File->Open Source.
    I often have a little problem with that dialog: If I want to enter a fliter string for the filenames I have to first click into it (normal so far) but the mouse cursor must stay in the field - otherwise ddd does not accept input... Maybe only my machine here...

    I have a link to a ddd tutorial that I've read a long time ago: http://www.linuxgazette.com/issue73/mauerer.html

  17. #57
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Intro - Warning: BBBOORRRIINNGGG!!!!!

    Quote Originally Posted by yop
    File->Open Source... (with your programm loaded). You ll see all the sourcefiles of your app listed.
    I must be very stupid but all I get when I try File->Open dlgMain.cpp is " try help".
    ( I get the same responce with any variation of the file, File Files, files with -> or without )

    I start with "ddd pm".
    ddd loads with "main.cpp" showing.
    Program runs
    I can step thru "main.cpp" (which I don't ned to do.)
    What do I enter on the command line to replace "main.cpp" with "dlgmain.cpp"?

    I go thru the tutorials and the manual and all I find are examples working on "main.cpp"
    Last edited by impeteperry; 25th January 2006 at 18:01.

  18. #58
    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: Intro - Warning: BBBOORRRIINNGGG!!!!!

    I meant the menu item File not write file on the command line

  19. #59
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Intro - Warning: BBBOORRRIINNGGG!!!!!

    Quote Originally Posted by yop
    I meant the menu item File not write file on the command line
    Now I really am confuned.!

    What do I key in at the botton of the screeen.

    (gdb) ????

    to get my "dlgmain.cpp" to replace the "main.cpp"

  20. #60
    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: Intro - Warning: BBBOORRRIINNGGG!!!!!

    Just see the attached image. This will give you a listing of all of your source files and you can select which one you want to open from there.
    Attached Images Attached Images

Similar Threads

  1. Visual Studio 2005 Express
    By Muzz in forum Installation and Deployment
    Replies: 22
    Last Post: 6th November 2008, 07:21
  2. How to Compile VTKDesigner2 with Qt?
    By alfredoaal in forum Newbie
    Replies: 0
    Last Post: 5th September 2008, 06:34
  3. Crash handler on Win32
    By niko in forum Qt Programming
    Replies: 3
    Last Post: 12th November 2007, 20:41
  4. Problem at time compilation in traslation of language
    By thomasjoy in forum Qt Programming
    Replies: 3
    Last Post: 22nd May 2007, 15:18
  5. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 06:23

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.