Results 1 to 5 of 5

Thread: Need suggestions for a new application

  1. #1
    Join Date
    Aug 2015
    Posts
    2
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Need suggestions for a new application

    Good evening,

    I'm still new to Qt (but good C++ knowledge) I've already created a small application with QML to get some basic experience, so I started to like QML and it's way to create UIs.

    Now I want to start a more complex application and before I write tons of useless code I have to throw away, I wanted to ask for some suggestions from more experienced developers. Basically I want to know, if I should continue using QML for my UI or better use Qt Widgets.

    The application should contain a main window with multiple documents organized in tabs. The documents contain various file types, so I need to change toolbars and menu entries depending on the currently selected tab/document. Also I want to support plugins, which should be able to provide additional toolbar elements, menu entries or dockable windows. I also need at least one custom widget to render some graphics with OpenGL.
    I dont want to ask how to implement these things (I've already figured out some of them). I just want to ask, if I should prefer QML or widgets (or use a combination of them?) Are there advantages or disadvantages? For example, is it possible to write a custom OpenGL widget with C++ and use it in QML UIs? Can I inject submenu items from plugins in my main window's menu bar? Or is support for these things better in classic Qt?

    Thanks for your help!

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Need suggestions for a new application

    For such a classic "desktop" style application I would always choose QtWidgets.

    Cheers,
    _

  3. #3
    Join Date
    Aug 2015
    Posts
    2
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Need suggestions for a new application

    Quote Originally Posted by anda_skoa View Post
    For such a classic "desktop" style application I would always choose QtWidgets.

    Cheers,
    _
    I don't think, answers like this are really helpful. You're telling me your opinion, but no explanation.
    Could you please tell me, what you think are the main disadvantages of QML compared to Qt?

    I know, KDE is using a lot of QML, so it dont seem to be that bad for desktop applications, also performance seems to be OK to me.

    Thank you,
    Baldur

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Need suggestions for a new application

    Quote Originally Posted by Baldur View Post
    I don't think, answers like this are really helpful. You're telling me your opinion, but no explanation.
    Could you please tell me, what you think are the main disadvantages of QML compared to Qt?
    There is no QML without Qt.

    And you were actually asking whether to use QtWidgets or QtQuick as the UI technology for a new application.

    QtQuick.Controls is nowhere near the QtWidgets yet when it comes to classic desktop UI features such as toolbars, dock widgets, etc., hence the suggestion to use QtWidgets if that is the type of interface you are going for.

    Quote Originally Posted by Baldur View Post
    I know, KDE is using a lot of QML, so it dont seem to be that bad for desktop applications
    KDE is also using a lot of QtWidgets, almost exclusively for desktop applications (Dolphin, Kontact, Calligra, Konsole, Kate, Konqueror, Okular, KDevelop, etc.)
    Usage of QtQuick is the desktop shell and games.

    Cheers,
    _

  5. #5
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Need suggestions for a new application

    Personally, I find it hard to take QtQuick seriously when it comes to developing a large application that will run on a desktop. As anda_skoa says, for one QtQuick.Controls has nowhere near the depth or usability of QtWidgets, and AFAIK, there is no QtQuick counterpart to Qt Designer for laying out a complex custom QWidget. I've also played with using QtQuick for part of the GUI of a QtWidget-based app, but it's awkward. (Granted, it was with an early version of QML, before there were many real controls available).

    On the other hand, if I was developing something simple to run on a tablet, I would probably choose a QtQuick implementation. I think it is more tuned for that type of platform, and will eventually offer a richer palette of nice-looking controls.

Similar Threads

  1. Seeking Suggestions for Multi-Threaded Application Design
    By swamyonline in forum Qt Programming
    Replies: 7
    Last Post: 1st May 2014, 16:19
  2. Future Suggestions
    By qtoptus in forum General Discussion
    Replies: 5
    Last Post: 2nd June 2011, 12:56
  3. My qt application (feedback and suggestions)
    By cfrankb in forum Qt-based Software
    Replies: 0
    Last Post: 28th December 2009, 16:53
  4. Replies: 10
    Last Post: 22nd July 2009, 23:52
  5. Suggestions in giving to my application a cool look
    By SkripT in forum Qt Programming
    Replies: 8
    Last Post: 2nd May 2006, 18:30

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.