Jackr
Posts: 9
Joined: Sat Dec 08, 2018 10:48 pm

Qt

Sun Dec 09, 2018 3:04 am

If I got it right...
I can cross compile unsing another pc following this half-crazy procedure: wiki.qt.io/Raspberry_Pi_Beginners_Guide :?
Or I can compile qt, in just 45 hours, following this completely-crazy procedure wiki.qt.io/Native_Build_of_Qt5_on_a_Raspberry_Pi :shock:
Why there is no a package ? Can you do it please ? Thanks.

Heater
Posts: 10638
Joined: Tue Jul 17, 2012 3:02 pm

Re: Qt

Sun Dec 09, 2018 10:09 am

Qt 5 is in the current raspbian (stretch) release. No building from source required just apt-get install it from the package.

fruitoftheloom
Posts: 18290
Joined: Tue Mar 25, 2014 12:40 pm

Re: Qt

Sun Dec 09, 2018 10:33 am

Code: Select all

sudo apt update
sudo apt install qt5-default

https://packages.debian.org/stretch/qt5-default
adieu

My other Computer is an Asus CS10 ChromeBit

Jackr
Posts: 9
Joined: Sat Dec 08, 2018 10:48 pm

Re: Qt

Mon Dec 10, 2018 12:19 am

Oh ok, I got it to work, thanks!
Why googling that I only find tutorials like the ones I mentioned ? g00gl€ must be broken lol

Jackr
Posts: 9
Joined: Sat Dec 08, 2018 10:48 pm

Re: Qt

Mon Dec 10, 2018 12:22 am

Speaking about pro and cons...
Gtk should be faster and the libs are installed by default.
While Qt is easyer and more beauty.
Correct ?

fruitoftheloom
Posts: 18290
Joined: Tue Mar 25, 2014 12:40 pm

Re: Qt

Mon Dec 10, 2018 12:33 am

Jackr wrote:
Mon Dec 10, 2018 12:19 am
Oh ok, I got it to work, thanks!
Why googling that I only find tutorials like the ones I mentioned ? g00gl€ must be broken lol

You should customise Google search to the last 6 months to save yourself from finding out of date information !
adieu

My other Computer is an Asus CS10 ChromeBit

User avatar
topguy
Posts: 5114
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Qt

Mon Dec 10, 2018 1:50 pm

Jackr wrote:
Mon Dec 10, 2018 12:19 am
Why googling that I only find tutorials like the ones I mentioned ?
The simple solution is usually so simple that no one really needs to write a long guide for it, you install Qt5 the same way you install all other software.
If you want a newer Qt5 version than the one in repository, or if you want to compile in OpenGLES support then you need those other guides.

Jackr
Posts: 9
Joined: Sat Dec 08, 2018 10:48 pm

Re: Qt

Mon Dec 10, 2018 8:54 pm

Jackr wrote:
Mon Dec 10, 2018 12:22 am
Speaking about pro and cons...
Gtk should be faster and the libs are installed by default.
While Qt is easyer and more beauty.
Correct ?
And is it true that the Qt UI uses gtk ?

User avatar
ksharindam
Posts: 96
Joined: Sat Jan 09, 2016 4:16 pm

Re: Qt

Tue Dec 11, 2018 7:30 pm

Jackr wrote:
Mon Dec 10, 2018 8:54 pm
And is it true that the Qt UI uses gtk ?
No, Qt does not use gtk, it has its own gui libraries. But in some cases it uses native dialog, such as it can open gtk dialog on a raspbian system.
Jackr wrote:
Mon Dec 10, 2018 12:22 am
Speaking about pro and cons...
Gtk should be faster and the libs are installed by default.
While Qt is easyer and more beauty.
Correct ?
In gtk and qt are almost same in case of speed and resource usage.
My Qt projects at ... https://github.com/ksharindam

Jackr
Posts: 9
Joined: Sat Dec 08, 2018 10:48 pm

Re: Qt

Tue Dec 11, 2018 9:36 pm

ksharindam wrote:
Tue Dec 11, 2018 7:30 pm
Thanks! More opinions ?

User avatar
ksharindam
Posts: 96
Joined: Sat Jan 09, 2016 4:16 pm

Re: Qt

Wed Dec 12, 2018 4:12 pm

If you are choosing a Gui library, Qt will be great.
For a beginner , gtk is easier to learn than qt.
But after you learn how to implement signal and slots, and subclass a QObject, everything will be easier with qt.

When i started to learn gtk, i tried to create a simple drawing app, and failed to draw over a pixmap using cairo.
But then i switched to qt, and everything became easier with QPainter.

Also, there are some convenient classes, which helps a lot.

Till now, i have made a browser, a pdf viewer, a paint app, a printing app, raspberry pi configuration editor, calculator, markdown editor, image files to pdf converter using either c++ qt or PyQt.
My Qt projects at ... https://github.com/ksharindam

code_exec
Posts: 195
Joined: Sun Sep 30, 2018 12:25 pm

Re: Qt

Wed Dec 12, 2018 9:39 pm

ksharindam wrote:
Wed Dec 12, 2018 4:12 pm
If you are choosing a Gui library, Qt will be great.
For a beginner , gtk is easier to learn than qt.
But after you learn how to implement signal and slots, and subclass a QObject, everything will be easier with qt.

When i started to learn gtk, i tried to create a simple drawing app, and failed to draw over a pixmap using cairo.
But then i switched to qt, and everything became easier with QPainter.

Also, there are some convenient classes, which helps a lot.

Till now, i have made a browser, a pdf viewer, a paint app, a printing app, raspberry pi configuration editor, calculator, markdown editor, image files to pdf converter using either c++ qt or PyQt.
QT has a GUI designer which allows you to drag and drop widgets into a virtual Window (also known as a Form). You can convert the UI file to a Python script, allowing you to integrate the window into your Python programs.
Ubuntu 18.04 LTS desktop images for the Raspberry Pi 3.

https://github.com/CodeExecution/Ubuntu-ARM64-RPi

Return to “Graphics programming”