Plugin Pro file like flow:
TEMPLATE = lib
TARGET = iostestqmlplugin
QT += qml quick
CONFIG += qt plugin c++11 static
uri = IosQmlPluginTest # module name
QMAKE_MOC_OPTIONS += -Muri=$$uri # static plugin must use this
typeinfo plugins.qmltypes #static plugin required
classname IosqmlpluginPlugin # static plugin must set classname for plugin c++ class
TimeLabel 1.0 qrc:/TimeLabel.qml # your self qml document
3.qrc file must contains qmldir file, Qt default put qmldir in qrc file with prefix likes: “/qt-project.org/imports/your-plugin-modele-name”, You can special yourself prefix but must endwiths “your-plugin-module-name” and in main cpp need add addImportPath(eg: engine.addImportPath(“qrc:/your-self-prefix-not-contains-your-plugin-module-name”))
4.put plugins.qmltypes, qmldir and plugin library files together into where Qt install dir’s sub fold name qml($$[QT_INSTALL_QML] Qt default serach path), maybe you can special yourself path in your app pro file by variable QMLPATHS(QMLPATHS += /your/plugin/path)
Init the plugin resources(contains qmldir) at plugin c++ class construction function like:Q_INIT_RESOURCE(your-qrc-file-name);
6.pulugins.qmltypes file it’s required. can gernerate by qmlplugindup tool.
7.refrence QtWebView plugin project from Qt source
1.static plugin for module “QtQuick” with name “your-module-name” has no metadata URI
fix by add in pro file:QMAKE_MOC_OPTIONS += -Muri=$$URI #URI = your-module-name
Rectangle is transparent to mouse events. It does not receive, handle or stop them.
If you want to stop the covered area from getting mouse events, add another MouseArea in your top rectangle and catch the mouse there. Or disable the bottom mouse area (enabled: false) then the top rectangle is visible.
I have not succeeded finding one that works with the qmake.exe -f option
I'm not aware of any version of QMake the supports a -f option (maybe it was on some really old version?) Why are you looking for one?
Perhaps you are thinking of GNU's make or mingw32-make.exe, which both support -f, or nmake.exe which uses /F instead? QMake uses positional arguments for the equivalent of those (and cmake uses the similar, but undocumented, -H option).
If you can tell us a bit more about why you're looking for a version of qmake.exe with -f support, we might be able to point you in the right direction.
I don't know if I should use a database manager like SQL to store the music library.
Well using a dbms gives easy way to sort / select from the data with no extra coding.
And if this is also a challenge, i would recommend using sqlite for the data.
However, if you have not used Qt view / models yet. maybe its a bit involved.
But very useful to learn about though. and you can get to play with http://doc.qt.io/qt-5/qsqlrelationaltablemodel.html also.
I wonder if the Qt Multimedia module is a good choice to read metadata.
Well if you wish for more direct access, then maybe a tag lib might work better http://taglib.org/.
No, qmlRegisterType doesn't use a binding, but I think I understand better what you want to do.
Look up the Loader qml type. You can use this to load another qml component in place 'on the fly', and you can set the location of the component that it loads with a binding on the 'sourceComponent' property.
I'm on my phone right now but if you want I can generate an example for you when I have access to my computer :)
You still haven't answered what ui is. Figuring that out may help you.
I qcast it from QWindow to QMainWindow.
Those are two completely different classes, so casting a pointer from one type to the other is just lying to the compiler about what the pointer is pointing at! It should be very rare that you would ever want to do something like that.
Q1) So I ended up rebooting my RaspberryPi into desktop mode. Then I used the very slow browser to copy and paste the commands into terminal across from the RaspberryPi2EGLFS guide. But likely the fix may have been that I was in the home/pi directory "~" this time not the root "/" that I was before. Step 14 down.
Q2) But then step 15 still has the same error:
This application failed to start because it could not find or load the Qt plaform plugin "xcb" in "".
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Reinstalling the application may fix this problem
Now I'm troubleshooting that missing library. If anyone else has come across this problem installing on a Pi or if there was something in the RaspberryPi2EGLFS that is meant to address this, I'd be happy to hear!
I read on another forum about how to Debug Plugins by putting a folder in my binary directory called "packages" and then running the following:
This is the part of the debugging that is relevant to the problem:
Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/home/pi/platforms" ...
Cannot load library /usr/local/qt5pi/plugins/platforms/libqxcb.so: (/usr/local/qt5pi/plugins/platforms/../../lib/libQt5XcbQpa.so.5: symbol _ZTI18QPlatformClipboard, version Qt_5_PRIVATE_API not defined in file libQt5Gui.so.5 with link time reference)
QLibraryPrivate::loadPlugin failed on "/usr/local/qt5pi/plugins/platforms/libqxcb.so" : "Cannot load library /usr/local/qt5pi/plugins/platforms/libqxcb.so: (/usr/local/qt5pi/plugins/platforms/../../lib/libQt5XcbQpa.so.5: symbol _ZTI18QPlatformClipboard, version Qt_5_PRIVATE_API not defined in file libQt5Gui.so.5 with link time reference)"
This application failed to start because it could not find or load the Qt platform plugin "xcb"
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Reinstalling the application may fix this problem.
I've tried a few of the tricks that were suggested on StackOverflow to the cannot load xcb topic but I would most appreciate to know why following the Qt getting started process for the RaspberryPi doesn't work.
Whether you need to use a proxy server or not has nothing to do with authenticating to a wireless network. It sounds like you are mixing up the two concepts. WPA and SSID's are for connecting to a wireless network, and setting up a QNetworkProxy won't help with that. You must already be joined to the network before you can use that network to connect to a proxy server.
In most cases, you won't need to worry about credentials for connected to the Wifi network. The user will be expected to join it themselves.
How do i detect the selected ssid is proxy network ?
In general, you can't. It's not even a property of the network. You may be able to access internal resources without going through a proxy, but need to connect to a proxy to get to external sites, etc. People may set up PAC, or just require users to enter proxy settings manually. It's pretty much impossible to distinguish between failing to connect to a host because something is broken, and failing to connect to a host because the network administrator wants you to connect to it through some proxy.
If selected network is proxy , how do i set username and password ?
If you are using setUseSystemConfiguration(true), you would just expect the user to configure their machine correctly and put any required credentials in the system's settings.
If you don't want to use the system proxy settings, you would be responsible for how you keep track of proxy credentials, and how you let the user configure your software.
Because Raspbian is a Debian derivative and AFAIK they follow their packages versions. If you want something as new as 5.10 then you'll have to either wait for the Raspbian folks to provide it or build it yourself.
I actually use this quite a bit to connect a slot of a derived class to a signal of the base class. True, this could be done with pure C++, but in some instances I find it more convenient and readable. E.g:
Yes, I realize I'm connecting a signal to another signal, instead of a slot, but the exact same thing applies. For example, if you wanted to store the colour string internally for some reason (this is probably a bad example, as there are better ways to do that, but there are plenty of scenarios when this comes in handy, because the only other way to do the same thing is kind of clunky) you could do this:
Was Du mit Deinem letzten Post schreibst, geht o.k. und habe ich auch probiert.
Mein Ziel ist es ,die item's nicht mit row und column anzusprechen, sondern mit einem Index 0 bis 63 (feld). Dabei ist der Index genau ien Feld auf dem Schachbrett. Das ist wichtig für die nachfolgenden Progammierung, z.B. ein Bauer zieht dann von feld 11 nach feld 19 (also Index 11 + 8 oder Index 11 + 16 ). Das ist einfacher und eleganter als row und column zu rechnen. Des weiteren steht auf einem feld 11 ein Bauer oder auf Feld 0 ein Turm. O.K.?
ui->schachbrett->setItem(x, y, feld[zelle]); Hast Du das mal getestet? Bei mir läuft es nicht. siehe weiter oben.
Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.