Results 1 to 3 of 3

Thread: QDevelop - global variables & help

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

    Default QDevelop - global variables & help

    Hi, I'm running Kubuntu 7.10, Qt4..... etc.
    I just discovered QDevelop!! I had been using Kdevelop 3...
    I can't find a QDevelop handbook.
    I can get local variables (QString & int) but can't global variables
    I would appreciate any comments on QDevelop vs Kdevelop.

    Thanks.

  2. #2
    Join Date
    Apr 2011
    Location
    Macerata, Italy
    Posts
    13
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QDevelop - global variables & help

    If you need an array for example, you need to write in a global.h file

    Qt Code:
    1. extern double dY[];
    To copy to clipboard, switch view to plain text mode 

    in the global.cpp file you need to include the global.h and to declare inside it the follow:

    Qt Code:
    1. double dY[10000];
    To copy to clipboard, switch view to plain text mode 

    then you can use the array in any .cpp file which includes the global.h file
    Last edited by wysota; 6th June 2011 at 12:54. Reason: changed [qtclass] to [code]

  3. #3
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: QDevelop - global variables & help

    I can get local variables (QString & int) but can't global variables
    What global variables you are looking for.

    QDevelop Use Guide can be found here: http://biord-software.org/qdevelop/doc-en.php

Similar Threads

  1. QDevelop auto-complete function and Qt4
    By degs2k4 in forum Qt-based Software
    Replies: 8
    Last Post: 6th May 2008, 19:43
  2. Qt and global variables
    By Morea in forum Qt Programming
    Replies: 11
    Last Post: 2nd February 2007, 00:42
  3. Global variables
    By Mariane in forum Newbie
    Replies: 14
    Last Post: 10th October 2006, 18:23
  4. declaration of global variables???
    By pranav_kavi in forum Newbie
    Replies: 6
    Last Post: 31st January 2006, 20:56

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.