tag:blogger.com,1999:blog-6223976744110856384.post2108006828562652193..comments2024-02-26T00:27:08.710-08:00Comments on Qt ,Maemo and some other stuff: Signal Slot connection with QML and Qt C++ codeAnonymoushttp://www.blogger.com/profile/18433786928656006467noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-6223976744110856384.post-4430103233361904662017-02-14T11:38:42.069-08:002017-02-14T11:38:42.069-08:00For example, if i have this label:
Label{
...For example, if i have this label:<br /> Label{<br /> text:"same text"<br /> }<br /><br />I would like to be able to change the text with the string from .txt file.Adrianhttps://www.blogger.com/profile/08964347101437001505noreply@blogger.comtag:blogger.com,1999:blog-6223976744110856384.post-52556736954300684622017-02-14T11:35:54.614-08:002017-02-14T11:35:54.614-08:00Hey,
Do you have any ideea about how can i send a ...Hey,<br />Do you have any ideea about how can i send a string in a label made in QML?<br />To be more specific i am reading from a .txt file and i save the words in a vector.<br />The words from the vector i would like to put in same labels made in QML. I didn't find nothing useful in the internet. ThxAdrianhttps://www.blogger.com/profile/08964347101437001505noreply@blogger.comtag:blogger.com,1999:blog-6223976744110856384.post-29605398588210951162015-01-24T19:09:41.777-08:002015-01-24T19:09:41.777-08:00yes, there are few API changes thoughyes, there are few API changes thoughAnonymoushttps://www.blogger.com/profile/18433786928656006467noreply@blogger.comtag:blogger.com,1999:blog-6223976744110856384.post-55516438744074089152015-01-13T02:56:54.417-08:002015-01-13T02:56:54.417-08:00does this work with QT 5 also?does this work with QT 5 also?Anonymoushttps://www.blogger.com/profile/13017470087393884376noreply@blogger.comtag:blogger.com,1999:blog-6223976744110856384.post-13460189959380967952012-10-16T17:59:33.902-07:002012-10-16T17:59:33.902-07:00you can use QProcess to launch externa program and...you can use QProcess to launch externa program and then attach signal slot to QProcess's signal/slotAnonymoushttps://www.blogger.com/profile/18433786928656006467noreply@blogger.comtag:blogger.com,1999:blog-6223976744110856384.post-85866664772518685232012-10-15T22:36:10.312-07:002012-10-15T22:36:10.312-07:00Hi, Had a query regarding slots. How can I start a...Hi, Had a query regarding slots. How can I start an external program within QT using this slot mechanism ?Joehttp://www.joe.comnoreply@blogger.comtag:blogger.com,1999:blog-6223976744110856384.post-37908156945858480572012-08-20T02:38:54.945-07:002012-08-20T02:38:54.945-07:00Hi, No, I don't know pythonHi, No, I don't know pythonAnonymoushttps://www.blogger.com/profile/18433786928656006467noreply@blogger.comtag:blogger.com,1999:blog-6223976744110856384.post-3244002434773845932012-08-18T16:25:16.827-07:002012-08-18T16:25:16.827-07:00Hi,
Any idea of how to do the last part :
signal...Hi,<br /><br />Any idea of how to do the last part :<br /><br />signals:<br /> void timeChanged(QString time);<br /><br />in python/PySide ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6223976744110856384.post-14572853458588254022012-07-09T06:17:01.628-07:002012-07-09T06:17:01.628-07:00above code sample does exactly same thing, it show...above code sample does exactly same thing, it shows how you can capture timeChanged() c++ signal in QML.Anonymoushttps://www.blogger.com/profile/18433786928656006467noreply@blogger.comtag:blogger.com,1999:blog-6223976744110856384.post-9728663386566822532012-07-08T19:07:38.116-07:002012-07-08T19:07:38.116-07:00How can I receive a signal from C++ in QML , if I...How can I receive a signal from C++ in QML , if I change it in C++ code ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6223976744110856384.post-36003726914319524502012-06-14T13:20:59.695-07:002012-06-14T13:20:59.695-07:00Hi Kunal thanks for the trick.
However if you have...Hi Kunal thanks for the trick.<br />However if you have an item inside another item in the QML, how do you bind it?<br />QDeclarativeContext *ctxt = view.rootContext();<br /> ctxt->setContextProperty("timer", &timerObj);<br /><br />the property timer is in the rootView only. I guess some C++ code need to be changed. ThanksKaisernoreply@blogger.comtag:blogger.com,1999:blog-6223976744110856384.post-15243376069624263382011-05-18T16:23:38.843-07:002011-05-18T16:23:38.843-07:00Thank you for comment. I am glad that it helped yo...Thank you for comment. I am glad that it helped you.Anonymoushttps://www.blogger.com/profile/18433786928656006467noreply@blogger.comtag:blogger.com,1999:blog-6223976744110856384.post-39664170053678978922011-05-18T08:13:36.368-07:002011-05-18T08:13:36.368-07:00Kunal-
Thanks a lot for posting this example. Ex...Kunal-<br /><br />Thanks a lot for posting this example. Exactly what I have been trying to do. 4.7 documentation is pretty weak on QML "Connections" syntax... not sure I ever would have figured it out!Dennishttps://www.blogger.com/profile/14750174749974982388noreply@blogger.com