I'll echo Keith Packard here: "I don't want to write an application in three programming languages."
Logic in C++, binding in JS, defintion in QML. There's two unneeded parts there, no points for spotting which ones.
Announcement
Collapse
No announcement yet.
SNA Sandy Bridge Is Quick To Beat UXA Too
Collapse
X
-
Originally posted by jonnor View PostSure you can: http://qt-project.org/doc/qt-5.0/qtq...ck-module.html
The API and programming model is much more like QGraphicsView than QWidget, and no widgets for Qt Quick are provided as part of Qt, but it is all there - available from C++.
Leave a comment:
-
Originally posted by JS987 View PostYou can't create complicated desktop apps in QML only as you can't directly use regular C++ classes and functions.
You need to create glue C++ code to use regular C++ classes in QML. Complicated desktop apps will be horrible mix of QML/Javascript and C++.
It isn't easier to create desktop applications in QML.
Javascript is dynamically-typed prototype-based language, which means broken by design.
You can't avoid Javascript in QML / Qt Quick applications and use C++ only as with Widgets.
The API and programming model is much more like QGraphicsView than QWidget, and no widgets for Qt Quick are provided as part of Qt, but it is all there - available from C++.
EDIT:
You may also create and manipulate a QML scene from C++: http://qt-project.org/doc/qt-5.0/qtq...ml-module.html
But if you like QWidget better, just use that.Last edited by jonnor; 28 February 2013, 05:42 PM.
Leave a comment:
-
Originally posted by smitty3268 View Post
Qt4's "hardware acceleration" was pretty infamous for being deceleration, at least on Linux.
Remember all the stuff about how you could force apps to use the raster backend to speed things up? And on Windows, they always used the raster backend. I don't know about OSX.
Leave a comment:
-
Originally posted by Ericg View PostIts optimized for anything. You can have them be really complicated and big for desktop apps, or really minimal for mobile apps.
Its not HARD, youre right. Its just easier in QML. Literally like 10 lines of code.
Qt4 and GTK are HORRIBLY accelerated, very inconsistent cuz of legacy code paths
Javascript is a fine language for really... its also platform agnostic, which is a keypart for QML's work (availability to mobile, on platforms OTHER than the one it was dev'ed on.)
You can use C++ with QML, its just not the preferred language. But you can do. QML's backends are all C++ based, you just dont normally interact with those.
You need to create glue C++ code to use regular C++ classes in QML. Complicated desktop apps will be horrible mix of QML/Javascript and C++.
It isn't easier to create desktop applications in QML.
Javascript is dynamically-typed prototype-based language, which means broken by design.
You can't avoid Javascript in QML / Qt Quick applications and use C++ only as with Widgets.
Leave a comment:
-
Originally posted by smitty3268 View PostReally? I assumed you could just use the Designer to auto-generate the QML side of things for the UI, and stick in whatever C++ you wanted.
Leave a comment:
-
Originally posted by JS987 View PostQML is optimized for small touch screens, not for desktop applications.
It isn't hard to create GUI for desktop application in Qt Designer.
Qt4 and GTK are also hardware accelerated.
Javascript is one of worst programming languages.
It isn't possible to write QML applications in C++11, which is best programming language for desktop applications.
Its not HARD, youre right. Its just easier in QML. Literally like 10 lines of code.
Qt4 and GTK are HORRIBLY accelerated, very inconsistent cuz of legacy code paths
Javascript is a fine language for really... its also platform agnostic, which is a keypart for QML's work (availability to mobile, on platforms OTHER than the one it was dev'ed on.)
You can use C++ with QML, its just not the preferred language. But you can do. QML's backends are all C++ based, you just dont normally interact with those.
Leave a comment:
-
Originally posted by JS987 View PostIt isn't hard to create GUI for desktop application in Qt Designer.
Javascript is one of worst programming languages.
It isn't possible to write QML applications in C++11, which is best programming language for desktop applications.
Javascript is a great scripting language, but i agree it's not what you should be coding application logic in. It seems ideal for scripting UI's though.
Qt4 and GTK are also hardware accelerated.
Remember all the stuff about how you could force apps to use the raster backend to speed things up? And on Windows, they always used the raster backend. I don't know about OSX.Last edited by smitty3268; 27 February 2013, 10:29 PM.
Leave a comment:
-
Originally posted by ChrisXY View PostIvy Bridge here, but perhaps it's similar enough.
With git master and sna gtkperf was 3.x seconds two days ago (before http://www.phoronix.com/scan.php?pag...tem&px=MTMxMjU), but now it's 6+ seconds with kwin opengl compositing. It's probably only temporary.
Leave a comment:
Leave a comment: