Посмотрите документацию по компоненту Loader, например здесь
Type: Posts; User: s.maks; Keyword(s):
Посмотрите документацию по компоненту Loader, например здесь
Are you have some output in your Qt debug console?
Try to use this ListView and tell us about results:
ListView {
id: imgslidelist
model: JScript.getImages()
delegate:...
Oh God! I just found better solution!
Look at this documentation article - Writing QML Components: Properties, Methods and Signals
We are interested in a line:
And then I want to know what is...
I found the solution. I'm using qml Loader inside my component. Now I can change Loader "source" or "sourceComponent" properties and load data inside my component.
I think you have misunderstood me. I have my component that can expande and collapse. Then I want to use other components inside my "spoiler".
Spoiler {
/*
here I want to use...
I have one (maybe stupid) question. I have component that can expanding (I called it "spoiler"). Here how it works:
import QtQuick 1.1
Rectangle {
id: spoiler_innerRect
...
Yes, why not? :)
My joy was premature :) Now, the following occurs:
1) I am loading images from first file - i see images from first file, everything works fine;
2) I am loading images from second file - for some...
While waited for an answers I solve this problem myself :)
Here is complete guide how to make class inherited from QAbstractListModel and QDeclarativeImageProvider and then use it on Qml.
First...
Oh, just one more problem :( I thought that everything works fine but for some reason when i open FilePage.qml twice with same param (model does not change) for the second time my image get 1 pixel...
Just have one more question. As I can see QDeclarativeEngine object delete QDeclarativeImageProviders added by. I'm tried to use setObjectOwnership( QObject* object, ObjectOwnership ownership) for my...
Oh, it's just stupid mistake. I just needed to do this:
/* main.cpp */
Q_DECL_EXPORT int main(int argc, char *argv[])
{
QScopedPointer<QApplication> app(createApplication(argc, argv));
...
Hmmm, looks like i miss something. Here what I am doing:
main.qml
PageStack {
/* ... */
MouseArea {
onClicked: PageStack.push(Qt.resolvedUrl("FilePage.qml"), { p_linkedFile:...
Yes, I know about setContextProperty(...) ; the problem is to call some methods of my class from qml. I have PageStack component in my main.qml ; then I'm doing something like this:
PageStack {...
Hi! I have some problems using QAbstractListModel with QDeclarativeImageProvider.
I have my own class that grab images from binary files and then i want to show these images in my qml app. Class...
I'm just execute start() method of QThread class. For example:
CCameraCallback lvCameraCallback();
lvCameraCallback.start();
Now when I'm trying to create QCamera object in run() function I got "A data abort exception has occurred accessing 0x48".
void CCameraCallback::run() {
if (!pCamera && !pImageCapture)...
I create QCamera and QCameraImageCapture objects in the CCameraCallback class constructor. I also use moveToThread(this) method in constructor. What am I doing wrong?
It there any way to catch camera image in separate tread? I'm trying to do this using code from this topic. I just inherit CCameraCallback from QThread and adding this->exec() to run() method. Now...
I'm trying to catch images using QCamera. Fore more code look at this topic. Now I just want to execute CCameraCallback.Run() method in another thread. Here is the code:
class CCameraCallback
...
Finally I'm got it. Now front camera capture image directly to memory. Then it is processed and write in the directory I needed. Here is the code:
void CCameraCallback::Run() {
if...
It's strange, but for some reason I receive 0 byte buffers =/ Here is code:
CCameraCallback::CCameraCallback()
: pSurface(this)
{
QByteArray lvCameraDevices =...
Yes i did.
symbian:TARGET.CAPABILITY += NetworkServices \
ReadUserData \
WriteUserData \
LocalServices \
UserEnvironment
I need to make photo with my N8 front camera and then pass this photo to another class for processing and saving it in specific format. By now i have that:
Header file:
class CVideoSurface
...
Year, but it's uncomfortable. I found many topics where developers want to capture camera images to buffer instead of saving it to file and there is no elegant solve to this problem. We can write...