Hi everyone. I am very new to the QT stuff.
I would like to install QT on Linux (Ubuntu) do a graphical design and run on Raspberry Pi.
My questions:
Is QT Quick the right tool to do this with? I'd like to program using QML.
Or do I need QT creator or something?
Thanks for all the Help.
M.
Re: QT Quick the right tool for GUI designs?
Qt Creator is an IDE in which you can do Qt app - with or without Qt quick. You can also look at PyQt4/PyQt5 which allows you to use Python instead of C++ to make the nice GUI work
And it's cross-platform. If you don't use platform-specific dependencies then your app ought to work on Linux (various CPU arch), Windows or OSX and with some luck on some mobile platforms more or less 


Re: QT Quick the right tool for GUI designs?
Thanks for the reply.
I will be using QML so no C++.
If I program on Ubuntu then will it be easy to deploy for RPi?
M.
I will be using QML so no C++.
If I program on Ubuntu then will it be easy to deploy for RPi?
M.
Re: QT Quick the right tool for GUI designs?
If you can avoid any C++ code for the backend then it would be very cool (for QML). In general you write once, run anywhere. In my case I just had to freeze into a standalone binary for Windows and OSX (PyQt4) without any code changes. Linux just run the sources without any distro/arch problems.
Re: QT Quick the right tool for GUI designs?
Hi All!!!
Please, help!
I try compile simple Qt\QML app on Pi. Compile complete without any error, but when I try start app I get error message
sources:
main.cpp
main.qml
I need create and start GUI (Qt\QML) without X.
what's do I wrong?
Please, help!
I try compile simple Qt\QML app on Pi. Compile complete without any error, but when I try start app I get error message

Code: Select all
pi@raspberrypi ~/dev/QML1Test/build $ ./QML1Test -platfrom eglfs
EGLFS: Unable to query physical screen size, defaulting to 100 dpi.
EGLFS: To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
EGLFS: Unable to query screen depth, defaulting to 32.
EGLFS: To override, set QT_QPA_EGLFS_DEPTH.
QQmlApplicationEngine failed to load component
qrc:/main.qml:4 module "QtQuick.Dialogs" is not installed
qrc:/main.qml:1 module "QtQuick" is not installed
qrc:/main.qml:3 module "QtQuick.Window" is not installed
qrc:/main.qml:4 module "QtQuick.Dialogs" is not installed
qrc:/main.qml:1 module "QtQuick" is not installed
qrc:/main.qml:3 module "QtQuick.Window" is not installed
qrc:/main.qml:4 module "QtQuick.Dialogs" is not installed
qrc:/main.qml:1 module "QtQuick" is not installed
qrc:/main.qml:3 module "QtQuick.Window" is not installed
main.cpp
Code: Select all
#include <QApplication>
#include <QQmlApplicationEngine>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
return app.exec();
}
Code: Select all
import QtQuick 2.4
import QtQuick.Controls 1.0
import QtQuick.Window 2.2
import QtQuick.Dialogs 1.2
ApplicationWindow {
title: qsTr("Hello World")
width: 640
height: 480
visible: true
menuBar: MenuBar {
Menu {
title: qsTr("&File")
MenuItem {
text: qsTr("&Open")
onTriggered: messageDialog.show(qsTr("Open action triggered"));
}
MenuItem {
text: qsTr("E&xit")
onTriggered: Qt.quit();
}
}
}
MainForm {
anchors.fill: parent
button1.onClicked: messageDialog.show(qsTr("Button 1 pressed"))
button2.onClicked: messageDialog.show(qsTr("Button 2 pressed"))
button3.onClicked: messageDialog.show(qsTr("Button 3 pressed"))
}
MessageDialog {
id: messageDialog
title: qsTr("May I have your attention, please?")
function show(caption) {
messageDialog.text = caption;
messageDialog.open();
}
}
}
what's do I wrong?
Re: QT Quick the right tool for GUI designs?
Now I following there http://www.qtcentre.org/threads/60907-H ... -installed
copy qml folder (for android_armv7 from my Qt 5.4 installation folder on my Desktop) to build dir and get one error:
main.qml line 1 is the import import QtQuick 2.4 and it include two parametrs.
My brain will broken soon ;(((
copy qml folder (for android_armv7 from my Qt 5.4 installation folder on my Desktop) to build dir and get one error:
Code: Select all
./QML1Test -platfrom eglfs
EGLFS: Unable to query physical screen size, defaulting to 100 dpi.
EGLFS: To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
EGLFS: Unable to query screen depth, defaulting to 32.
EGLFS: To override, set QT_QPA_EGLFS_DEPTH.
QQmlApplicationEngine failed to load component
qrc:/main.qml:1 a component declaration requires two or three arguments, but 1 were provided
My brain will broken soon ;(((
Re: QT Quick the right tool for GUI designs?
Wow! Now I can build Qt Enviroment as this http://qt-project.org/wiki/RaspberryPi_Beginners_guide
and can start simple qt\qml\c++ app. But I can't find info about using QtQuick.Controls for Pi. It's component is missing in my qt5pi->qml folder. This is possible for Pi?
and can start simple qt\qml\c++ app. But I can't find info about using QtQuick.Controls for Pi. It's component is missing in my qt5pi->qml folder. This is possible for Pi?
Re: QT Quick the right tool for GUI designs?
In the part of that guide that says "Compiling other modules." you should at least add "qtxmlpatterns" and "qtquickcontrols" to the build if you plan to use QML much.
I'm using a different guide to build Qt5 directly on the Pi2 and QtQuickControls work.
I'm using a different guide to build Qt5 directly on the Pi2 and QtQuickControls work.
Re: QT Quick the right tool for GUI designs?
Could You explain how can I do QT\QML for Video output. Read about qtmultimedia which don't work on Pi. Read about PiOTextures, but I think this some difficult way. Try using Show and Hide QML View and run omxplayer directly (via system("omxplayer -o hdmi myvideo.mp4"), but can't do it too.
Please advise how can coding GUI with QT\QML and video output on Pi?
Please advise how can coding GUI with QT\QML and video output on Pi?
Re: QT Quick the right tool for GUI designs?
This blog contains the only thing I've seen on the subject:
http://thebugfreeblog.blogspot.no/2013/ ... media.html
http://thebugfreeblog.blogspot.no/2015/ ... ed-qt.html
http://thebugfreeblog.blogspot.no/2013/ ... media.html
http://thebugfreeblog.blogspot.no/2015/ ... ed-qt.html
Re: QT Quick the right tool for GUI designs?
And Hi again! )
I try learning QML\Qt for GUI and faced with problem.
I can't register c++ class for QML.
I do this
where MyTestClassName is my custom class
project compile normaly, but when start, I get error:
Undefined symbol _Zn8re ..... etc.
When I comment qmlRegisterType string, all start is OK!
I get same error when try output debug message:
and fix it that:
How can I fix above error on RPi ?
P.S. (I'm using cross-compile build as this http://wiki.qt.io/RaspberryPI_Beginners_guide)
I try learning QML\Qt for GUI and faced with problem.
I can't register c++ class for QML.
I do this
Code: Select all
qmlRegisterType<MyTestClassName>("MyClass",1,0,"MyClassMod");
project compile normaly, but when start, I get error:
Undefined symbol _Zn8re ..... etc.
When I comment qmlRegisterType string, all start is OK!
I get same error when try output debug message:
Code: Select all
QString qstr1="test1";
qDebug()<<qstr1
Code: Select all
qDebug()<<qstr1.toUtf8().data()
P.S. (I'm using cross-compile build as this http://wiki.qt.io/RaspberryPI_Beginners_guide)
Re: QT Quick the right tool for GUI designs?
Exact error messages is important when trying to help pin down problems.zebox wrote: Undefined symbol _Zn8re ..... etc.
- eriktheitalian
- Posts: 358
- Joined: Thu Feb 19, 2015 1:03 pm
Re: QT Quick the right tool for GUI designs?
Qt's 4.8 supported apps gui realy slow with raspbian. Speed is good with archlinux.
( i'm tried qupzilla-at4 on both. Arch better. )
I'm tried qupzilla qt5 and otter browser on archlinux. Not worked.
No one working for fix qt compatibility bugs or speed optimize. U cant find answers about qt. No one care.
There is good web browsers maded by qt but no one care. No one talk about them.
( i'm tried qupzilla-at4 on both. Arch better. )
I'm tried qupzilla qt5 and otter browser on archlinux. Not worked.
No one working for fix qt compatibility bugs or speed optimize. U cant find answers about qt. No one care.
There is good web browsers maded by qt but no one care. No one talk about them.
I cant using enough English language. My writings can be wrong grammer.$
"in micro$oft we not trust"
"in micro$oft we not trust"
Re: QT Quick the right tool for GUI designs?
Lots of people care, but lots of people are very busy...don't attribute to not-caring that which can be attributed to lack of resource.eriktheitalian wrote:Qt's 4.8 supported apps gui realy slow with raspbian. Speed is good with archlinux.
( i'm tried qupzilla-at4 on both. Arch better. )
I'm tried qupzilla qt5 and otter browser on archlinux. Not worked.
No one working for fix qt compatibility bugs or speed optimize. U cant find answers about qt. No one care.
There is good web browsers maded by qt but no one care. No one talk about them.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.
Re: QT Quick the right tool for GUI designs?
this error I get
Code: Select all
undefined symbol: _ZN9QMetaType22registerNormalizedTypeERK10QByteArrayPFvPvEPFS3_S3_PKvEi6QFlagsINS_8TypeFlagEEPK11QMetaObject
Re: QT Quick the right tool for GUI designs?
C++ mangled class/method names like this can be "demangled" with for example http://demangler.com so this is the real name of the missing function:zebox wrote:this error I getCode: Select all
undefined symbol: _ZN9QMetaType22registerNormalizedTypeERK10QByteArrayPFvPvEPFS3_S3_PKvEi6QFlagsINS_8TypeFlagEEPK11QMetaObject
Code: Select all
QMetaType::registerNormalizedType(QByteArray const&, void (*)(void*), void* (*)(void*, void const*), int, QFlags<QMetaType::TypeFlag>, QMetaObject const*)
Re: QT Quick the right tool for GUI designs?
Oh! Thank's for this, but could you explain what's does it mind?
I must to initialize some class for QByteArray?
I must to initialize some class for QByteArray?
Re: QT Quick the right tool for GUI designs?
I would start looking in the Qt docs to see where QMetaType is. And make sure that the library containing that class is included.
I think its related to the .moc files that Qt sometimes generates. Read about QMetaObjects in the docs.
Also make sure that any of these .moc files are compiled and linkted.
I think its related to the .moc files that Qt sometimes generates. Read about QMetaObjects in the docs.
Also make sure that any of these .moc files are compiled and linkted.
Re: QT Quick the right tool for GUI designs?
Thank you very much!!! Will Try resolve as you advice..