Page 3 of 5 FirstFirst 12345 LastLast
Results 41 to 60 of 166

Thread: QDevelop, a new IDE for Qt4

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2006
    Location
    Sweden
    Posts
    99
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    11
    Thanked 3 Times in 3 Posts

    Default Re: QDevelop, a new IDE for Qt4

    Hello!

    I'm still having problems with code completion. I've downloaded ctags 554 and linked to the executable with 'external tools', and as a function check, the class list works great.

    But the code completion works only sporadically, and when it does work it takes forever to bring up a list of suggestions. When i type just about anything except an actual variable followed by '->' or '.', i get a list of constants.
    ex:
    Qt Code:
    1. asdf<ctrl+space>
    To copy to clipboard, switch view to plain text mode 

    Also, typing a variable and then '->' or '.' doesn't give me any code completion alternatives:
    Qt Code:
    1. QString str = "this is a test";
    2. str.<ctrl+space>
    To copy to clipboard, switch view to plain text mode 
    In that case, and cases like it, the code completion command doesn't do anything. Is it just me or are others having this problem? Any suggestions on how to fix it are warmly welcomed!

    I'm using qDevelop 0.21, qt 4.2.2, exuberant ctags 554, windows xp pro.

  2. #2
    Join Date
    Jan 2006
    Posts
    156
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanked 12 Times in 12 Posts

    Default Re: QDevelop, a new IDE for Qt4

    THRESHE: In your previous post, make is launched in "C:/Saves/Dev-Cpp/bin" directory and it not good. In qdevelop, open the dialog "tools | external tools" and choose, for make, "mingw32-make.exe" in the mingw/bin directory. On my XP, it's "C:\MinGW\bin\mingw32-make.exe".

    TheRonin: The completion work only with Qt4 classes and not with your application classes. In addition, you must add at the begin on your cpp file, the #include for your class. In your example, add #include <QString> on top of your file and completion certainly work.

    For all : You can donate here: http://qdevelop.org/donate.php
    QDevelop, an complete Integrated Development Environment for Qt 4: http://qdevelop.org

  3. #3
    Join Date
    Jan 2006
    Location
    Lincoln, NE USA
    Posts
    177
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    3
    Thanked 7 Times in 6 Posts

    Default Re: QDevelop, a new IDE for Qt4

    Quote Originally Posted by GreyGeek View Post
    I installed QDevelop on my SimplyMEPIS32 6.5 beta7 and it works beautifully, including code completion. Thanks for a very find tool.
    Send me a snail mail address and I'll send you a donation!
    I moved to PCLinuxOS 2007 and QDevelop works well under it, too!

  4. #4
    Join Date
    Jan 2006
    Posts
    156
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanked 12 Times in 12 Posts

    Default Re: QDevelop, a new IDE for Qt4

    A new version 0.23 is available on qdevelop server:

    Corrections:
    - Prevents the opening of the same file in several tab.
    The code completion works now with the classes created in the project.
    When the IDE auto-completes some code, it also add the "()" after the cursor, and place the cursor in the best position
    possible.
    - Fix a problem with packaged versions of QDevelop. With these versions, the code completion did not work.

    Adds:
    - Add Portuguese translation thanks to Giuliano Santana
    - Add Vietnamese translation. Thanks to Chuong Nguyen
    - In subclassing, the code is now added in editor if the file is opened in tab (before, the code was added always in files on disk, even with the file opened).
    QDevelop, an complete Integrated Development Environment for Qt 4: http://qdevelop.org

  5. #5
    Join Date
    Apr 2007
    Posts
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Question Re: QDevelop, a new IDE for Qt4

    It is a great project
    I have tried before to make something like that, but you did more than what I would expect

    it is working smoothly, everything is fine except the code completion
    it works but not as I expected
    for example in this code
    Qt Code:
    1. frmMain::frmMain( QWidget * parent, Qt::WFlags f)
    2. : QMainWindow(parent, f)
    3. {
    4. setupUi(this);
    5. this->(Ctrl+Space)
    6. }
    To copy to clipboard, switch view to plain text mode 

    I am expecting here to get list of all functions, properties of the QMainWindow class
    but what i get is only one lonely function "frmMain()"

    i have exuberant-ctags (version 5.6) installed
    class browser works fine
    Last edited by jacek; 19th August 2007 at 20:08. Reason: changed [qtclass] to [code]

  6. #6
    Join Date
    Apr 2007
    Posts
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QDevelop, a new IDE for Qt4

    Problem fixed
    I have added "-R" to the command line arguments

    QString command = ctagsCmdPath + " -R -f \"" + tagsFilePath +
    "\" --append --language-force=c++ --fields=afiKmsSzn --c++-kinds=cdefgmnpstuvx -L \""
    + tagsIncludesPath + '\"';

    in the file InitCompletion

  7. #7
    Join Date
    Jan 2006
    Posts
    156
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanked 12 Times in 12 Posts

    Default Re: QDevelop, a new IDE for Qt4

    Your modification seems not the good solution because without "-R" I have the completion for the QMainWindow.
    QDevelop, an complete Integrated Development Environment for Qt 4: http://qdevelop.org

  8. #8
    Join Date
    Feb 2006
    Location
    Jarrell, Texas, USA
    Posts
    70
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    7
    Thanked 4 Times in 4 Posts

    Default Re: QDevelop, a new IDE for Qt4

    I'm using QDevelop 2.1 with QT 4.2.2 in Suse and RHEL. Wonderful product.
    I have a couple of questions:

    1. How do I make the debugger see src files that are in a src subdirectory of the project? When I run the debugger it always says "cannot find main.cpp".

    2. How can I alter the settings for a library to create an archive lib (.a) instead of a shared object (.so)?

    Thanks!
    Karl

  9. #9
    Join Date
    Jan 2006
    Posts
    156
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanked 12 Times in 12 Posts

    Default Re: QDevelop, a new IDE for Qt4

    Hi KaptainKarl,

    1. How do I make the debugger see src files that are in a src subdirectory of the project? When I run the debugger it always says "cannot find main.cpp".
    In debugging, QDevelop opens automatically the project sources files. So I think it's a problem with your Qt library installed. Certainly you don't have Qt built in debug mode.
    2. How can I alter the settings for a library to create an archive lib (.a) instead of a shared object (.so)?
    Go to "Project | Properties" then enable "Advanced Mode". You have a checkbox "staticlib". Certainly work for your request (but I don't test it).

    A newest version that 0.21 is available on http://qdevelop.org
    QDevelop, an complete Integrated Development Environment for Qt 4: http://qdevelop.org

  10. The following user says thank you to jlbrd for this useful post:

    KaptainKarl (13th July 2007)

  11. #10
    Join Date
    Jan 2006
    Posts
    371
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    14
    Thanked 18 Times in 17 Posts

    Default Re: QDevelop, a new IDE for Qt4

    it will fail if you are debugging sub-projects.

  12. #11
    Join Date
    Jan 2006
    Posts
    156
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanked 12 Times in 12 Posts

    Default Re: QDevelop, a new IDE for Qt4

    Quote Originally Posted by elcuco View Post
    it will fail if you are debugging sub-projects.
    I created two sub-projects in debugging mode and the cursor is well placed on breakpoint.
    QDevelop, an complete Integrated Development Environment for Qt 4: http://qdevelop.org

  13. The following user says thank you to jlbrd for this useful post:

    ufo-vl (20th July 2007)

  14. #12
    Join Date
    Jan 2006
    Posts
    371
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    14
    Thanked 18 Times in 17 Posts

    Default Re: QDevelop, a new IDE for Qt4

    I will try to reproduce my problem and send it to you in the next few days.

  15. #13
    Join Date
    Jul 2007
    Posts
    27
    Thanks
    4
    Thanked 1 Time in 1 Post

    Thumbs up Re: QDevelop, a new IDE for Qt4

    jlbrd,
    Good program, thanks :-).

  16. #14
    Join Date
    Feb 2006
    Location
    Jarrell, Texas, USA
    Posts
    70
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    7
    Thanked 4 Times in 4 Posts

    Default Re: QDevelop, a new IDE for Qt4

    Hello,

    I just upgraded to QT 4.3 and while I was at it, I upgraded QDevelop to 0.23. I tried to build an application that worked under QT 4.2.2 and QDevelop 0.21.

    The application includes a LIBS variable that is set to the following:
    "-L../lib -lSMART"

    When I try to build it in QDevelop, I get an undefined reference from the library I'm pointing to with the variable.

    When I try to build from the command line, I get the following:
    #> ~/QTProjects/SMART/SMRTsum> gmake
    g++ -Wl,-rpath,/usr/local/Trolltech/QT4.3_STATIC/lib -o SMRTsum main.o -L/usr/local/Trolltech/QT4.3_STATIC/lib -L../lib\ -lSMART -lQtSql -L/usr/lib/mysql -lmysqlclient_r -lz -lcrypt -lnsl -lc -lnss_files -lnss_dns -lresolv -lodbc -pthread -L/opt/gnome/lib -pthread -L/usr/X11R6/lib -lpng -lSM -lICE -pthread -pthread -lXi -lXrender -lXrandr -lXfixes -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lQtCore -lm -pthread -lgthread-2.0 -lglib-2.0 -lrt -ldl -lpthread
    main.o: In function `main':
    main.cpp.text+0x14fe): undefined reference to `getStateID(unsigned long)'
    collect2: ld returned 1 exit status
    gmake: *** [SMRTsum] Error 1

    As you can see, there is a mysterious "\" after the "-L../lib".
    If I edit the Makefile manually and take this "\" out, the compile works.

    Is this a bug in QDevelop or am I entering the value of the LIBS Variable incorrectly?

    Thanks,
    Karl

  17. #15
    Join Date
    Jul 2007
    Posts
    27
    Thanks
    4
    Thanked 1 Time in 1 Post

    Exclamation Re: bug in QDevelop for windows

    I have found bug in QDevelop 0.23

    Excuse me, I do not have opportunity to get an account on google for reporting in http://code.google.com/p/qdevelop/issues/list.

    Step for reproduce:
    1. Сreate empty project
    2. Right click on project file (*.pro)
    3. Select "add new file"
    4. Select source file.
    5. Input file name
    6. In shown dialog press Yes or No

    Expected result: file(s) was created

    Actual result: could not create file dialog was shown.

    Dup for this issue: "Create new class" from context menu.

    OS: Win XP Pro SP2
    Qt ver: 4.3
    QDevelop ver: 0.23

    Problem: QDevelop not create directory "src, ..." for new files. As result: attempt to create a file in a nonexistent directory

    Sorry for my bad english
    Thanks.
    Last edited by ufo-vl; 24th July 2007 at 06:25.

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

    Default QDevelop, a new IDE for Qt4

    Recently I started using Ubuntu (feisty). This is my first foray into linux, so this maybe a linux problem, I don't know.
    On windows I have no problem whatsoever with QDevelop.
    on ubuntu I compiled and run QDevelop fine. Also used it to compile exsisting projects fine. But anything I try to do in Project Explorer window doesn't work. For example, if I try to right-click and choose delete the project - I get "unable to delete the main project". If I right-click and add new item, a cpp file, etc, I get "unable to create file".
    I thought this might be a permission issue, so I run Qdevelop as root, also changed its group and ownership to root, and am still getting the same problem.
    Any idea? It's probably a simple thing that I don't know...

    EDIT: Sorry, meant to post this in the Qdevelop questions thread..

  19. #17
    Join Date
    Jan 2006
    Posts
    156
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanked 12 Times in 12 Posts

    Default Re: QDevelop, a new IDE for Qt4

    You have a problem because you have created a project with a template "subdirs". A "subdirs" project can contains only other projects. In this kind of project, it is not possible to add files. And it is not possible to delete the main project, you can close it instead.
    This behavior is the same with all platforms and is not a Linux problem.

    If you want to create a classical project (without sub-projects), choose "app" to template in the Options dialog.
    QDevelop, an complete Integrated Development Environment for Qt 4: http://qdevelop.org

  20. The following user says thank you to jlbrd for this useful post:

    dave (24th May 2007)

  21. #18
    Join Date
    May 2006
    Posts
    788
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    49
    Thanked 48 Times in 46 Posts

    Default Re: QDevelop, a new IDE for Qt4

    I found tab indent error on QDevelop... on version window... maybe linux also.. sf.net download latest...

    Indent tab one line remove line...

    i rewrite so...

    Qt Code:
    1. void TextEdit::IndentText( bool make ) /* make == keyPressEvent tab + false - */
    2. {
    3. /* baseram = QApplication::clipboard(); */
    4. QTextCursor curseurActuel = textCursor();
    5. QTextCursor c = textCursor();
    6. /* no text selection move tabulator */
    7. if ( make && c.selectedText().isEmpty() )
    8. {
    9. if ( m_tabSpaces )
    10. {
    11. int nbSpaces = tabStopWidth() / fontMetrics().width( " " );
    12. for (int i = 0; i<nbSpaces; i++) {
    13. c.insertText( " " );
    14. }
    15. }
    16. else {
    17. if ( m_tabSpaces )
    18. {
    19. int nbSpaces = tabStopWidth() / fontMetrics().width( " " );
    20. for (int i = 0; i<nbSpaces; i++) {
    21. c.insertText( " " );
    22. }
    23. }
    24. else {
    25. c.insertText( "\t" );
    26. }
    27. }
    28. return;
    29. } else
    30. /* having text to tabulator */
    31. if ( make && !c.selectedText().isEmpty() ) {
    32.  
    33.  
    34. int startb = c.selectionStart();
    35. int endb = c.selectionEnd();
    36.  
    37. c.setPosition(startb, QTextCursor::MoveAnchor);
    38. c.movePosition(QTextCursor::StartOfLine, QTextCursor::MoveAnchor);
    39. QTextBlock blocStart = c.block();
    40.  
    41. c.setPosition(endb, QTextCursor::MoveAnchor);
    42. c.movePosition(QTextCursor::StartOfLine, QTextCursor::MoveAnchor);
    43. QTextBlock blocEnd = c.block();
    44.  
    45. int position = 0;
    46. int startline;
    47. int stopline;
    48. int xli = 1;
    49.  
    50. for ( QTextBlock block = document()->begin(); block.isValid(); block = block.next(), xli++) {
    51. if (blocStart.text() == block.text()) {
    52. startline = xli;
    53. }
    54. if (blocEnd.text() == block.text()) {
    55. stopline = xli;
    56. }
    57. }
    58.  
    59.  
    60. xli = 1;
    61.  
    62. if (stopline > startline) {
    63. //////qDebug() << "### ok line greats ";
    64. QString greppitxt = GrepTextLines(startline,stopline);
    65. //////qDebug() << "### txt indent " << greppitxt;
    66. if (greppitxt.size() > 0) {
    67. cut();
    68. baseram->clear();
    69. baseram->setText(greppitxt,QClipboard::Clipboard);
    70. paste();
    71. selectLines(startline,stopline);
    72. QTextCursor c1 = textCursor();
    73. c1.setPosition(c1.position() - 1 ,QTextCursor::KeepAnchor);
    74. setTextCursor( c1 );
    75. ensureCursorVisible();
    76. }
    77. return;
    78. } else if ( stopline == startline ) {
    79. //////qDebug() << "### ok line greats ";
    80. QString greppitxto = GrepTextLines(startline,startline);
    81. //////qDebug() << "### txt indent " << greppitxt;
    82. if (greppitxto.size() > 0) {
    83. cut();
    84. baseram->clear();
    85. baseram->setText(greppitxto,QClipboard::Clipboard);
    86. paste();
    87. selectLines(startline,startline);
    88. QTextCursor c2 = textCursor();
    89. c2.setPosition(c2.position() - 1 ,QTextCursor::KeepAnchor);
    90. setTextCursor( c2 );
    91. ensureCursorVisible();
    92. return;
    93. }
    94.  
    95. }
    96.  
    97. }
    98.  
    99. }
    100.  
    101.  
    102. QString TextEdit::GrepTextLines(int startline, int stopline )
    103. {
    104. QStringList cuttextlist;
    105. cuttextlist.clear();
    106. int xli = 1;
    107. for ( QTextBlock block = document()->begin(); block.isValid(); block = block.next(), xli++) {
    108. if (xli == startline || xli > startline) {
    109. if (xli == stopline || xli < stopline) {
    110. cuttextlist.append(GrepLineFromTxBloc(block));
    111. ////////qDebug() << "### cat line GrepTextLines " << xli;
    112. }
    113. }
    114. }
    115. return cuttextlist.join("\n");
    116. }
    117.  
    118.  
    119.  
    120. QString TextEdit::GrepLineFromTxBloc( QTextBlock block )
    121. {
    122. QString linetext = "";
    123. if ( m_tabSpaces ) /* if tabulator key on? */
    124. {
    125. int nbSpaces = tabStopWidth() / fontMetrics().width( " " );
    126. for (int i = 0; i<nbSpaces; i++) {
    127. linetext.append( " " );
    128. }
    129. linetext.append(block.text());
    130.  
    131. } else {
    132. linetext.append(block.text());
    133. }
    134.  
    135. return linetext;
    136. }
    137.  
    138.  
    139. void TextEdit::selectLines(int debut, int fin) /* start end */
    140. {
    141. if ( debut > fin )
    142. qSwap( debut, fin);
    143. QTextCursor c = textCursor();
    144. c.movePosition(QTextCursor::Start );
    145. c.movePosition(QTextCursor::Down, QTextCursor::MoveAnchor, debut - 1 );
    146. c.movePosition(QTextCursor::Down, QTextCursor::KeepAnchor, fin-debut + 1);
    147. setTextCursor( c );
    148. ensureCursorVisible();
    149. }
    To copy to clipboard, switch view to plain text mode 

  22. #19
    Join Date
    Jan 2006
    Posts
    156
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanked 12 Times in 12 Posts

    Default Re: QDevelop, a new IDE for Qt4

    Sorry but your code seems very complicated to fix a little problem. Before a modification of the code, can you describe exactly what problem occurs.
    QDevelop, an complete Integrated Development Environment for Qt 4: http://qdevelop.org

  23. #20
    Join Date
    May 2006
    Posts
    788
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    49
    Thanked 48 Times in 46 Posts

    Default Re: QDevelop, a new IDE for Qt4

    Quote Originally Posted by jlbrd View Post
    Sorry but your code seems very complicated to fix a little problem. Before a modification of the code, can you describe exactly what problem occurs.
    Quote Originally Posted by patrik08 View Post
    I fou
    Indent tab one line remove line...
    If i Indent tabulator -> <- the line is remove delete...

    I discovery now QScintilla-1.73-gpl-2-snapshot-20070519 .... and i use that one.

Similar Threads

  1. QDevelop SQLite Driver Issue
    By Phan Sin Tian in forum Qt-based Software
    Replies: 4
    Last Post: 1st August 2010, 11:47
  2. QDevelop 0.22
    By jlbrd in forum Qt-based Software
    Replies: 5
    Last Post: 5th May 2007, 13:03
  3. QDevelop - current development
    By ghorwin in forum Qt-based Software
    Replies: 2
    Last Post: 30th March 2007, 14:54
  4. Getting QDevelop to work
    By db in forum Newbie
    Replies: 3
    Last Post: 20th March 2007, 02:25
  5. g++ with qdevelop
    By spx2 in forum Qt Programming
    Replies: 2
    Last Post: 19th December 2006, 09:55

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.