emitting signals with QList as parameter?

Hey developers

How can I pass a QList as an argument with a signal? He repeats to me

"No such signal ConnectionService::downloadCompleted (QList, QString) '.

I'm emitting the signal with a QList object and a QString. It's my signal

void downloadCompleted(const QList &connections, const QString &error);

And that's how I connect

connect(&this->connectionService, SIGNAL(downloadCompleted(QList, QString)), this, SLOT(searchCompleted(QList, QString)));

I have allso tried QList SIGNAL signature. But that no longer works.

Thanks in advance.

Spend a full type, i.e.

Connect (& connectionService, SIGNAL (downloadCompleted (const QList&, const QString &)), this, SLOT (searchCompleted (const QList&, const QString &)));)))

'const' and '&' can be omitted if it should also work:

Connect (& connectionService, SIGNAL (downloadCompleted (QList, QString)), this, SLOT (searchCompleted (QList QString,)));

UPD:

Try saving the type:

qRegisterMetaType< QList >("QList");

Tags: BlackBerry Developers

Similar Questions

  • Emitting signals with instant preview

    I was wondering if it is possible to send signals when the user clicks on the instant preview. Is this possible? And if so, I would be extremely happy if there is no code for the same.

    Thank you.

    I don't think that this is possible you want to put in a use in SAID case.

    https://www.BlackBerry.com/JIRA/secure/dashboard.jspa

  • Connection of signals (with parameter) in QML.

    Hello

    I want to connect a signal (with parameter) in QML. I have the signal of my PPC and I am able to do that in QML, when I use signals that has no parameters.

    I want to connect to signals which takes the parameter.

    app.mySignal.connect (button.doSomething);

    I do not mySignal() issue, works very well.

    Want to do something like issue mySignal (int) and acess as QML in

    -Thank you

    your signal is:

    mysignal (QString)

    then connect to a function like that (qml)

    myClass.mysignal.connect (onmysignal)

    and:

    function onmysignal (mystring) {}

    Console.log ("my string is:" + mystring)

    }

    If you have several settings, you must be careful with the order and better to use descriptive names, as there is no type in the function definition.

  • Trace the signal with little data

    Hello everyone,

    I have the problem of tracking. I would draw a signal I have greated. I store the profile of signals in a table and this table I want to give with "draw the waveform. The problem now is that my signal may have a minimum of 4 values. The function of "Draw the waveform" plots each position of the table in the graph. With 4 values, the result is a triangle signal but it is false, that the signal should be like a rectangle (signal Wave Drive). There is no action between that. I have the oscilloscope the correct signal with only values in the table.

    In the 1 following you can see the result. The signal has an offset of 5 V, just FYI. The signal should be the signal in the following 2 (orange).

    Hope someone can help me.

    Best regards

    Probably a trace type thin step in PlotWaveform will do what you want.

    You can experiment with styles of different path for example native of race graphs.prj: you can locate with finder example or simply search in the \userint folder.

  • market factor two AO signals with a square wave

    Hello

    I use two devices with sending two signals (sine wave) AO out simultaneously in my code. I need to have to cycle my signals. in other words, I want to start or OFF the devices at all times. To do this, I use a generator with duty cycle of 50% square wave. The devices must be running when the square wave has positive values and should be OFF when it is negative.

    The code almost made it, but it doesn't seem to be as fast it's supposed to, based on the frequency of the square wave. I was wondering if someone can help me with this problem. In addition, I'm not sure if this is the best method to do this, please leave me know if there is a better way. I've also attached the VI.

    Thank you

    Pooya

    I thought about it. Instead of the command at the AO signals with square wave and the structure of the case, I just made a square wave from 0 to 1 and multiplied the wave sqaure to the AO (sine wave) signals. In this way, when the amplitude of the square wave is 1, it sends the sine waves and when it is 0 it sends 0.

    Please note that all signals (sine and square) should have the same info of sampling.

  • Extrapolation of signal with FFT

    Hello

    I want to extrapolate (generate some outter points a signal given).

    My approach is to use a FFT to acquire the signal spectrum,

    and, to go back to the time domain of the iFFT to generate the new signal.

    But there is no option (iFFT) to specify the size of the generated signal.

    For example, if I have a signal of 1 Hz with Fourier, I must be able to generate a signal with an arbitrary length.

    Is there a function in LV that generate a signal of varying size for each of Fourier Coef gived in entrance (by the FFT)?

    Best regards

    Nicolas


  • Writing of signals with different sampling to file rate

    Hi all.

    I have a somewhat periodic signal, each cycle having his inerference S.A max, min, mean, RMS ect.

    I like to write * ALL * these data to a single file, with a scale of absolute time, where the cycle data will be stamped with the maximum of the cycle time.

    cycle data columns must be empty at the time as the time of the signal peak value.

    Who's asking 2 questions:

    1. can I build a 'waveform' with a not constant sampling rate where I just stamp each data point arbitrarily? This will help me to get the result I want?

    2. is there a better way to convince labview to write data of the cycle next to the signal, with time stamp correct?

    An example is attached.

    Thanks for the tips...

    10 x Heuter, your example is useful - the problem is resolved.

  • Mixed signals with the same index: p

    Hello

    I try to draw multiple signals with the same index x

    I built it, but he can't shoot

    that part which is not respected this VI

    Best regards

    Magnin

    Hello

    I have no license mathscript, but I think it should work:

    Let me know...

    Best regards

  • Syntax for taking export with the "Query" parameter

    Hi all

    Please help me about the syntax for export with the query parameter taking

    Hello

    exp file=d:\exp.dmp log=d:\exp.log tables=scott.emp query='where empno=10'
    
    exp file=d:\exp.dmp log=d:\exp.log tables=scott.emp query='where ename='''SCOTT''
    

    Salman

  • Weak signal with airport Extreme

    Hello, we have an Airport Extreme tour in our condo. The signal is that two of our rooms is low. Is there a way to increase the signal? Not Apple or any other extenders of sale of business or boosters?

    Thank you

    Another extreme airport would be the perfect match to extend the signal of your "main" AirPort Extreme, but an AirPort Express pourrait point be good enough for your application, if the budget is limited.

    Ideally, the second airport would be located in the middle of the area where you need more wireless signal strength and then connect to the 'main' airport using wired Ethernet wired, permanent.

    It is possible to have the second airport to extend the first using a Wi - Fi connection... IF... the second airport is where he can receive a strong signal from the first airport.  A good location is at halfway between 'primary' airport and the area that needs more wireless coverage.

    Remember that when you extend wireless like this, there is always a loss of about half of the potential wireless speed on the network, then the result will be a network with the best range, but reduces the maximum speeds.

    The more you have line of sight between the airports, the network will be operated. Or, another way of saying the same thing, is the 'extension' airport to expand the speed of the signal it receives. It can make the stronger... wireless signal but can't go faster.

  • No signal with new Apple TV

    Hi-

    IM replacing a bigger Apple tv (black unit) with a new Apple TV just bought.  Swapped the power and the HDMI cable and the people showing NO SIGNAL.  Connect Apple TV to and works very well.  Lite white is on the new Apple TV.  Plugged NEW apple TV directly on a newer TV and it worked...

    The old apple tv and hdmi cable that work are probably 3-4 years.  The existing old unit HDMI cable goes to a Pioneer receiver and which in turn outputs to the TV.

    All that I'm missing?

    Thank you

    Mike

    If you have tried it on another tv and it worked then the problem is located in the old tv

  • 2014 Macbook Air check cable signal with Samsung Syncmaster 2494lw

    I already posted this in the wrong thread. I have a Samsung Syncmaster 2494lw monitor that I am trying to connect my MacBook Air to 2014 el capitan running. I use a bolt of lightning to the adapter HDMI from Belkin to connect on the screen, then a DVI adapter to HDMI on the screen. When I plug in the computer, I get the "check signal cable"; However, connect other computers to the monitor works fine, including another mac. Does anyone have a solution to this?

    Thank you!

    Hi seanay89,

    Thank you for using communities Support from Apple. I'm sorry to hear you're having this problem with your Mac. I think I can have you talked yesterday this problem so I apologize if this is a duplication, but if you have problems connecting your external monitor to your MacBook Air, you can find information and troubleshooting steps described in the following article useful, up to and including contacting Apple Support if necessary :

    Get help with graphical problems on the external displays connected to your Mac - Apple Support

    Concerning

  • IdeaCentre K450 'no signal' with monitors (VGA and HDMI)

    I bought a K450 (of Jack online of lenovo, handed to nine) in December. I have an Acer H226HQL 21.5 "monitor at the same time and put in place all at once. I used the VGA cable to connect the monitor. Everything worked perfectly until a few weeks ago. I went to wake the computer and the screen remains black. I pressed the power button to turn off completely and turn it on again, 'no signal' stil on the monitor. I tried to use the HDMI cable with the acer and the old monitor of 8 years of my last office (with VGA cable) and still no signal. Checked the power strip, it works fine. I am at a loss!

    I ran updates on firmware for everything, including the graphics, when I put the computer. I would check on the firmware for the graphics card, but it is difficult to without a working screen. In addition, do not know if this is relevant at all, but it was running windows 8.1.

    Is there anything else I can do to fix this?

    Thank you!!

    In fact, I realized there are TWO VGA ports in the case of the computer and
    plugged into another one and it worked. Oops. No idea why HDMI cables
    did not work, however. I hope that you are able to get your problem solved!

  • A degradation of the WiFi Signal with laptop lid closed

    I have a HP Presario DV6 running Windows 7 64-bit.

    It has an Atheros AR9285 802.11b/g/n WiFi Adapter using the 8.0.0.172 driver Version dated 09/23/2009

    I noticed that if I run the laptop with the lid closed there is a degradation in WiFi signal.  More specifically, with the lid open, I can see the signal from my router with - 77dBm, but with the lid closed this fall to-87dBm. (No other changes to the environment)

    I checked all the power settings to keep the NIC power on with the lid closed.

    This deterioration is simply a feature of hardware design and antenna site is there anything I can do about this other than get external USB network card?

    Hello:

    I recommend that you only install the latest driver. Who can help a bit.

    But the main reason why your signal degrades, it's because the antennas are under the screen. When the screen is opened, they stick to the top. When closed, they are ineffective, because the ends are oriented horizontally and lower (toward you) instead of vertically.

    Latest version of the driver:

    http://h20000.www2.HP.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&swItem=ob-95105-1&mode=4&IDX=2&prodTypeId=12454&prodSeriesId=316720

    Paul

  • Many signals with ditch (NI 9229 and NI 9205) devices multi 9188 cDAQ chassis

    I use a chassis equipped with 9188 OR cDAQ with 6 x NI 9229 (6 x 4 HAVE simultaneous chnls sampled with aliasing filter) and a NI 9205 (32/16 HAVE chnls single/premium multiplexecd chnls). I created a simple mind task the DAQ Assistant to acquire 12 chnls with the module NOR 9229 modues and 4 with the NI 9205 module. A generator is used to produce a sine wave with a frequency of 10 Hz and an amplitude of 500 mVpp as input to all channels. The same generator also produce a square wave (synchron to sine) which is used as input trigger (PFI 0 - BNC connector on the chassis). The acquisition is expected to have samples end up a flow of 2 kHz and a datalength of 4000 samples (this means a time of acquisition of 2 seconds) controlled by a digital reference triggered with the cADQn/PFI0 as a source of relaxation.

    My problem is the time difference between signals acquired with the NI 9229 module and those acquired with the module NI 9205 (see the attachment). The time difference is not constant and change when the frequency of the input signal varies. I guess the difference is due to aliasing filters used in the NI 9229 module and I'm looking for how to resolve the situation. Any help will be appreciated...

    Philippe

    By the research and reading, OR knowledge base I solve the problem by making a dummy read on the NI 9229 channels before reading from the device OR 9205.

    According to the specifications of the NI 9229 module, there is a delay of filter (digital filter) of more or less 40 samples that are present only in the case of a digital triggering.

    Reason and solution of this problem are explained here: http://digital.ni.com/public.nsf/allkb/F989B25FF6CA55C386256CD20056E27D.

    I have applied the solution presented in this paper and this is excellent work.

    Now, this problem is solved.

    What about a whole, Philippe

Maybe you are looking for