There is a bash command that comes with installing PyQT Creator called designer
that will run a tool called Qt Designer, found under the Qt Creator package. It helps you create GUIs - pretty cool stuff.
There is a problem though... whenever I run designer
, I get this error:
designer: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/designer': No such file or directory
And that's great - I don't want it to execute /usr/lib/x86_64-linux-gnu/qt4/bin/designer
, I want it to execute /usr/lib/x86_64-linux-gnu/qt5/bin/designer
, the difference being between "qt4" (first path) and "qt5" (second path). That's where designer is.
I looked around and found this command type -a (command)
and it would tell you where the command definition is "located", if I understand correctly. So I looked it up and got:
$ type -a designer
designer is /usr/bin/designer
But I can't edit that file... it's a bunch of gibberish (side question, what does it mean when a file has no file extension? What does that make it?)
So, my question is, how can I get the command designer
to execute /usr/lib/x86_64-linux-gnu/qt5/bin/designer
?
Edit: which designer
also returns /usr/bin/designer
,
also:
$ file /usr/bin/designer
/usr/bin/designer: symbolic link to qtchooser'
So I also took a look at qtchooser... seems like its a command (not entirely sure what it does).
Here is some output:
file /usr/bin/qtchooser
/usr/bin/qtchooser: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=96215e9441b8361f0cc57b37db70fc50752cb05a, stripped
file /usr/bin/designer
to find out what kind of file it is. – AlexP Nov 10 '17 at 22:51which designer
is also/usr/bin/designer
? Please add the output offile /usr/bin/designer
to your question using the formatting tools. – dessert Nov 10 '17 at 22:52qtchooser
doesn't know about QT5 and thinks you have QT4 instead – tricky! If it's just fordesigner
, I'd just define an alias withalias designer=/usr/lib/x86_64-linux-gnu/qt5/bin/designer
in the~/.bash_aliases
file. – dessert Nov 10 '17 at 22:59export QT_SELECT=qt5
and if that doesn't helpsudo apt install qt5-qmake
! – dessert Nov 10 '17 at 23:00