Results 1 to 5 of 5

Thread: array of typedef struct declared inside class

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: array of typedef struct declared inside class

    Qt Code:
    1. struct MySampleStruct {
    2. int x;
    3. int y;
    4. };
    5.  
    6. MySampleStruct MySample[3];
    To copy to clipboard, switch view to plain text mode 

    or possibly even:

    Qt Code:
    1. struct {
    2. int x;
    3. int y;
    4. } MySample[3];
    To copy to clipboard, switch view to plain text mode 
    Last edited by wysota; 22nd November 2012 at 06:17.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Pass struct array to function
    By willbeas_SMU in forum General Programming
    Replies: 2
    Last Post: 19th March 2012, 17:05
  2. Struct in a class
    By Atomic_Sheep in forum Newbie
    Replies: 6
    Last Post: 10th February 2012, 09:34
  3. Unable to initialize char [] var inside struct ....
    By tonnot in forum General Programming
    Replies: 1
    Last Post: 26th August 2011, 10:40
  4. Struct Parsing, multiple name typedef failing
    By Syndacate in forum Qt Tools
    Replies: 1
    Last Post: 12th July 2011, 07:47
  5. Struct into a C++ class
    By franco.amato in forum General Programming
    Replies: 24
    Last Post: 30th September 2010, 16:13

Tags for this Thread

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.