Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. New to QT5
QtWS25 Last Chance

New to QT5

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Keith Hedger
    wrote on last edited by
    #1

    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.

    The large print givith and the small print taketh away. - Tom Waites.

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      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.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Keith Hedger
        wrote on last edited by
        #3

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

        The large print givith and the small print taketh away. - Tom Waites.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          Keith Hedger
          wrote on last edited by
          #4

          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

          The large print givith and the small print taketh away. - Tom Waites.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved