Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. data
    Log in to post

    • UNSOLVED Serial data received
      General and Desktop • serialport data qt c++ buffer • • manel.sam  

      19
      0
      Votes
      19
      Posts
      318
      Views

      @manel-sam said in Serial data received: So the append I should do it where§? Create a member variable in your imu class. // _packetData member variable of imu _packetData.append(serialPort->readAll()); if(_packetData.size()>=PACKET_LENGTH) { // packet complete qInfo() << QStringLiteral("data size is : ") << _packetData.size() << " octets"; qDebug() << "Serial received " << _packetData.toHex(); // go ahead with this packet QDataStream stream(_packetData); // Read The BigIndian value stream.setByteOrder(QDataStream::BigEndian); qint16 headerSignature; stream >> headerSignature; } You may also check the data received don't exceed PACKET_LENGTH, cause it means you have already received data from the next packet. (it may be irrelevant in your case, I don't kown)
    • UNSOLVED MediaInfo library
      3rd Party Software • dll data media • • UnitScan  

      3
      0
      Votes
      3
      Posts
      974
      Views

      @raven-worx do you know of any project to "Qt-ize" the interface? Currently they use their own String class, which makes working with it difficult
    • UNSOLVED Import Header Files in the .pro file
      General and Desktop • static header data dllimport c2491 • • Michael.R.LegakoL-3com.com  

      2
      0
      Votes
      2
      Posts
      1462
      Views

      Hi @Michael-R-LegakoL-3com-com, I think a better approach, is to use a macro to apply the dllimport/export, and then enable that macro in the library only. For example, if you look at qmake's simple_dll test example, the simple.h header contains: #ifdef SIMPLEDLL_MAKEDLL # define SIMPLEDLL_EXPORT Q_DECL_EXPORT #else # define SIMPLEDLL_EXPORT Q_DECL_IMPORT #endif class SIMPLEDLL_EXPORT Simple { ... } Then the simple_dll.pro file contains: DEFINES += SIMPLEDLL_MAKEDLL So, this way, when the library is being built (via simple_dll.pro), then class is dllexport'ed. But when other code uses that same header (in doesn't define SIMPLEDLL_MAKEDLL) then that same class is dllimport'ed instead. Typically, you end up doing this sort of thing to many classes in a single library, so rather than having the #ifdef ... #define ... etc in each header file, it often ends up being written once in a "global" project header of some kind. For example, Q_CORE_EXPORT gets defined in qglobal.h, then used throughout all of the exported core Qt class headers. Also see: When creating a library with Qt/Windows and using it in an application, then there is a link error regarding symbols which are in the library Cheers.
    • UNSOLVED how to recieve/send text from one qml file to another qml file
      QML and Qt Quick • qml qt 5.7 text data textinput • • Qjay  

      4
      0
      Votes
      4
      Posts
      2624
      Views

      @Qjay You can get text like this, Create instance of search.qml means like Search(this is your search.qml file instance, first latter should be capital of your qml file) { id: searchText } 2 In search.qml file create property like property alias Name_of_variable(like textOfSearchField): id_of_textfield(search_text.text) Now wherever you want to use, can do like this. searchText(id_of_instance).Name_of_variable You will find exact value as you passed in search.qml file
    • UNSOLVED Qt Data Driven Test row name
      General and Desktop • qt5.6 test data qtestlib • • diredko  

      6
      0
      Votes
      6
      Posts
      2294
      Views

      Nice one ! I've missed that function. Thanks !
    • UNSOLVED Tools for plotting QVector3D data ?
      General and Desktop • charts data graph visualization • • mar77  

      1
      0
      Votes
      1
      Posts
      777
      Views

      No one has replied

    • Data structure to save diagram, an editor developed in QT widget
      General and Desktop • save data editor struct diagram • • Emysa341  

      1
      0
      Votes
      1
      Posts
      765
      Views

      No one has replied

    • UNSOLVED Right way to hold and manage a lot of data
      General and Desktop • data right way managment • • RegineerCZ  

      6
      0
      Votes
      6
      Posts
      1391
      Views

      Sorry, my fault ... I will hold back this inner ironic imp in the future.
    • QLocalSocket: Send data that large 4096 bytes
      General and Desktop • windows data ipc qlocalsocket data loss qlocalserver • • lolopolosko  

      8
      0
      Votes
      8
      Posts
      5185
      Views

      @LuGRU Why not to use: QSharedMemory and You don't need to worry about message formatting. Because I run process with different account. First process run from System account and second from local account When I read SharedMemory in another process I have error "QSharedMemory handle doesn't exist"
    • How to use modelData without one element?
      General and Desktop • qml model model-view data • • sosun  

      1
      0
      Votes
      1
      Posts
      573
      Views

      No one has replied

    • Using QComboBox with QSqlQueryModel
      General and Desktop • c++ qcombobox qt4 model-view item qsqlquerymodel data • • Aleksey_K  

      2
      0
      Votes
      2
      Posts
      1992
      Views

      Yeah, according to QComboBox code should work: QVariant QComboBox::itemData(int index, int role) const { Q_D(const QComboBox); QModelIndex mi = d->model->index(index, d->modelColumn, d->root); return d->model->data(mi, role); } Will implement this.
    • [SOLVED]How to store data present in the tableview in any 2D array ?
      General and Desktop • qtableview array data • • Ratzz  

      9
      0
      Votes
      9
      Posts
      2762
      Views

      @SGaist Yes, It worked me out.
    • Structure to be written&read in and from data file
      General and Desktop • file data struct • • Adityan J  

      2
      0
      Votes
      2
      Posts
      1588
      Views

      @Adityan-J Yes. Use QDataStream and QFile. Here's one example.
    • Read website data from a custom port? (not 80 http)
      General and Desktop • http read data custom website port get • • Arty.McLabin  

      5
      0
      Votes
      5
      Posts
      2552
      Views

      @mcosta i am able to view the page inside the browser tho, why can't Qt read it then?
    • Transfer Data Between Two Forms
      General and Desktop • data forms transfer between • • XADOOO  

      3
      0
      Votes
      3
      Posts
      1773
      Views

      @XADOOO said: ast