Results 1 to 5 of 5

Thread: Need to create QStringList and QVector in FORTRAN

  1. #1
    Join Date
    Mar 2008
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

    Question Need to create QStringList and QVector in FORTRAN

    Hi friends,

    I have a new problem today.

    I'm developing wrappers (C) for C++ lib.
    FORTRAN client uses this C wrapper to call C++ lib features.

    My problem now is, I need to pass instance of QStringList and QVector to the wrapper to get my work done.

    How to go about?

    Any idea?
    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Need to create QStringList and QVector in FORTRAN

    I don't know what's the Qt-Problem here. You have to figure out how / if Fortran handles such structures and convert them into the correct form.

  3. #3
    Join Date
    Mar 2008
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Need to create QStringList and QVector in FORTRAN

    Quote Originally Posted by ChristianEhrlicher View Post
    I don't know what's the Qt-Problem here. You have to figure out how / if Fortran handles such structures and convert them into the correct form.
    Sorry I didn't explain my problem completely.

    I need to create an instance of QStringList in FORTRAN (will this support?).
    Thanks for replying.

  4. #4
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Need to create QStringList and QVector in FORTRAN

    That's not possible. You have to pass the strings as char* and then create your QStringList inside Qt.

  5. #5
    Join Date
    Mar 2008
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Need to create QStringList and QVector in FORTRAN

    Quote Originally Posted by ChristianEhrlicher View Post
    That's not possible. You have to pass the strings as char* and then create your QStringList inside Qt.
    Thanks for your reply.

    I'll try out your idea.
    Have a nice day.
    Bye

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.