Shop OBEX P1 Docs P2 Docs Learn Events
QT CREATOR vs GTK + with simpleIDE — Parallax Forums

QT CREATOR vs GTK + with simpleIDE

NicoHEINicoHEI Posts: 15
edited 2016-06-03 08:45 in General Discussion
Hey,

I want to do an interface between my computer and arlo

This interface will be a windows with 6 button

3 button position init Arlo (A B or C)

3 button position final Arlo (A B or C)

Can I use
QT Creator with simple IDE

Can I use
GTK + with simple IDE

Which one is the best to do this interface ?

Thx

Comments

  • Heater.Heater. Posts: 21,230
    That would be Qt.

    It's very easy to create such an interface with the qtcreator IDE. You can drag and drop buttons and other GUI elements into your programs window layout. Or write the code manually which quite easy too.

    Qt applications are very easy to recompile for Linux, Mac and Windows.

    Simple IDE and Propeller IDE are written using Qt.

    It's not clear to me what you mean by "with simple IDE".
  • Heater.Heater. Posts: 21,230
    edited 2016-06-03 10:09
    Having said that, now a days I would prefer to create such an interface as a web app for display in a web browser or perhaps building into desktop application using Electron. http://electron.atom.io/

    Electron is used used by Microsoft for their Visual Studio Code IDE https://code.visualstudio.com/ and by Github for their Atom editor https://atom.io/

    As web app you have the advantage of not have to make multiple builds for multiple platforms. And of course you can use your interface remotely from anywhere in the world.

    All you need is a simple web server to server up the web page and then to communicate between your buttons and whatever device is connected to your computer. That server can be a few lines of Javascript running under node.js.

    I have simple demo/expample of such a web app interface here: https://bitbucket.org/zicog/pigpio2html



  • I'm not really sure I understand what you're asking, but you can't use either directly with SimpleIDE. The Propeller isn't capable of running either Qt or GTK+.

    What you probably want to do is to write a program on your computer using Qt or GTK+ that talks to your Propeller over a serial connection.

    You could also hook up a VGA or TV display to your Propeller and have it display a simple GUI, but then you'd have to manage all of the graphics and buttons and such yourself, and this probably wouldn't be as easy with an Arlo.

    I don't know enough to recommend either Qt or GTK+. Heater knows more about these things than I. I've never written a program with a graphical user interface with normal buttons and such and not just pure graphics.
  • Hey,

    I juste want an graphic interface between the computer and the #C code (write with simple ide)

    I write my code for Arlo to move it

    Now I want a windows on my computer where there will be some boutons to do some actions at Arlo


    Do you understand what I mean?

    (scuse for english mistakes, me i'm french)
  • Heater.Heater. Posts: 21,230
    Now I'm confused. Where did the C# come from?

    SimpleIDE is a development environment (editor, loader, terminal) for writing programs that run on the Propeller. Those programs are written in C or C++. I have not checked for a while but it also supported using the Spin language. If it has not been already Spin support was to be removed.

    PropellerIDE is a development environment for writing Spin programs for the Propeller.

    Qt and GTK+ are tool kits for creating graphical user interfaces. Usually Qt and GTK+ programs are written in C++.

    One quick and easy way to go is to write your program in C++ and use QT. Develop it in the qtcreator IDE. You can borrow code from ProellerIDE or Simple IDE for driving a serial connection to the Propeller.

    If you already have a C# program that you want to extend then C# has it's own GUI building IDE. I know very little about that. But C# makes a good server side language so you could use it to serve up the GUI as a web page. I know little about that either.

Sign In or Register to comment.