New to QT5



  • Hi everyone, I am new to these forums and to QT5 and need some general pointers, first I have been coding in gtk2 for a number of years and have a few app released, but as I am not happy with gtk3 I would like to add QT support to these apps, I have already done this one:
    "GtkSu":http://gtk-apps.org/content/show.php?content=158974
    which build and run fine under both gtk2 and QT5, but is actually quite simple, I need to get on to more complex apps, so finally my questions!

    Can someone point me to the QT5 equivalent of gtksourceview, which as the name suggests is a a 3rd party source code highlighter etc.

    Some general text editor examples, though I believe there is simple example of this in the QT5 source code.

    A good site for assorted examples, of dialogs, menus, toolbars etc.

    Finally would it be best to use conditional compilation or to split the projects into gtk and QT apps?

    To the mods please feel free to move this post if its in the wrong place.


  • Moderators

    Hi, and welcome to the Qt Dev Net! I hope you find your stay an enjoyable one.

    [quote author="Keith Hedger" date="1409657750"]Can someone point me to the QT5 equivalent of gtksourceview, which as the name suggests is a a 3rd party source code highlighter etc.
    [/quote]I'm not familiar with gtksourceview, but I believe "QSyntaxHighlighter":http://qt-project.org/doc/qt-5/implicit-sharing.html is a good place to start.

    [quote author="Keith Hedger" date="1409657750"]Some general text editor examples, though I believe there is simple example of this in the QT5 source code.

    A good site for assorted examples, of dialogs, menus, toolbars etc.[/quote]The Qt libraries come bundled with lots of examples. After you install Qt 5, open Qt Creator and go to Welcome -> Examples. Search there.

    Alternatively, browse through http://qt-project.org/doc/qt-5/all-examples.html or simply use your favourite search engine to search for "Qt text editor".

    [quote author="Keith Hedger" date="1409657750"]Finally would it be best to use conditional compilation or to split the projects into gtk and QT apps?[/quote]That really depends on your project architecture, but my gut feeling is to have separate projects. Conditional compilation tends to get messy quickly.



  • Thanks for the quick reply and the tips I will have a look and report back



  • Well I translated another of my apps, a GUI for aspell ( surprisingly few of these about ). I used conditional compilation for Gtk/Qt but it was getting complicated so I will probably switch to using separate projects for anything more complex, anyway if anyone's interested its here:
    http://qt-apps.org/content/show.php?content=167038


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.