Go to advanced search

by salvato
Thu Oct 10, 2019 7:39 am
Forum: OpenGLES
Topic: RPi 4 OpenGL ES 3.0 ShaderToy to download (100+ examples)
Replies: 45
Views: 6001

Re: RPi 4 OpenGL ES 3.0 ShaderToy to download (100+ examples)

@tipam

Hello,
is the site http://www.skillmanmedia.com/ShaderToyRPi4.zip still online ?
I'm having problem accessing it.
by salvato
Thu Oct 03, 2019 10:02 am
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)? [solved]
Replies: 52
Views: 1929

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

I suggest you to try experiment without be worried. Your Pi is no in danger !
by salvato
Thu Oct 03, 2019 8:37 am
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)? [solved]
Replies: 52
Views: 1929

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

Hi The QMainWindow (that is the subclass of your MainWindow) already has a QStatusBar widget accessible as ui->statusBar (unless you change its name) or you have deleted it. I suggest you to take your time in reading and trying to understand this: https://doc.qt.io/qt-5/qmainwindow.html#details . As...
by salvato
Wed Oct 02, 2019 4:39 am
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)? [solved]
Replies: 52
Views: 1929

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

Once you have inserted the Menu items like this:
A.jpg
A.jpg (142.65 KiB) Viewed 470 times
You will have a new action added in the window below. Then if you right click on the line you can add your slot like this:
B.jpg
B.jpg (153.19 KiB) Viewed 470 times
by salvato
Tue Oct 01, 2019 10:34 am
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)? [solved]
Replies: 52
Views: 1929

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

Hi. I think that is very similar to the way you did for the buttons... My English is so poor that I'm not sure to be able to explain clearly, anyway...I'll try. In the Form editor you can add a menu item by writing in the space were you read "Type Here" and the pressing return to confirm. A submenu ...
by salvato
Sun Sep 29, 2019 5:39 pm
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)? [solved]
Replies: 52
Views: 1929

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

Hi. Try rigth clicking over the "widget" (button or other...).
In the flying menu choose "Go to Slot..." and select the event (Signal in Qt jaergon) you want to catch.
Click OK and a new "Slot" (The catching function...) will be created for you and the editor will open in the right place.

Ciao
by salvato
Mon Sep 23, 2019 2:54 pm
Forum: Networking and servers
Topic: wpa_supplicant 2.3
Replies: 0
Views: 94

wpa_supplicant 2.3

Hi all, I have to downgrade the installed version (2.6) of wpa_supplicant to the old 2.3 version because in my local network the routers are too old and doesn't allow me to connect to the WiFi. I'm running the last version of Raspbian in my Rpi4. Is there anyone that can suggest me how to downgrade ...
by salvato
Wed Sep 18, 2019 10:08 am
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)? [solved]
Replies: 52
Views: 1929

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

The labels are there but since I've set an initial empty text they are not shown.
Open the form editor and look in the Object-Class window.
the labels are named:

Code: Select all

pin23Label
pin24Label
into the Property-Value Window look for the property
frameShape
and play with the possible values
by salvato
Wed Sep 18, 2019 8:15 am
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)? [solved]
Replies: 52
Views: 1929

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

The problem probably started when you tried to rename your project.
into the .pro file you will find the following line:

Code: Select all

TARGET = quit_btn
change it in

Code: Select all

TARGET = quit_wiringPi
by salvato
Tue Sep 17, 2019 1:37 pm
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)? [solved]
Replies: 52
Views: 1929

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

Then the Qt configuration seem ok. Then: 1) replace the files MainWindow.cpp and MainWindow.h with those in my project 2) in the .pro file insert the lines we discussed before in order to link the right libraries and add the include path. Run the program and look at the output in the "Compile Output...
by salvato
Tue Sep 17, 2019 11:19 am
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)? [solved]
Replies: 52
Views: 1929

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

Please do this:

Create a new project in QtCreator Without adding a single line and try to run it and see the MainWindow Appear.
It is this working ?
by salvato
Tue Sep 17, 2019 8:54 am
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)? [solved]
Replies: 52
Views: 1929

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

Sorry... I'm not able to help you since there are too many unknown that I should imagine...
If you are able to place your project into a github repository I can try to help you.
by salvato
Tue Sep 17, 2019 7:51 am
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)? [solved]
Replies: 52
Views: 1929

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

Code: Select all

label_03.setText(QString("%1").arg(i));
should do the work.

Meaning...

You should convert the numerical value of i into a String (QString in Qt) and then assign the string to the QLabel.
by salvato
Fri Sep 13, 2019 3:01 pm
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)? [solved]
Replies: 52
Views: 1929

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

Never tried but perhaps you can just insert into the .pro file the following three lines:

Code: Select all

INCLUDEPATH += /usr/local/include
LIBS += -L"/usr/local/lib"
LIBS += -lwiringPi
No harm...
by salvato
Fri Sep 13, 2019 2:07 pm
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)? [solved]
Replies: 52
Views: 1929

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

@dsyleixa123 Hi. I don't use WiringPi but instead pigpiod. If you agree to use pigpiod this could help you to start: In the .pro file add the following lines (to add the include path and the library path necessary to find the needed files): INCLUDEPATH += /usr/local/include LIBS += -lpigpiod_if2 # T...

Go to advanced search