Navigation

    Qt Forum

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

    • UNSOLVED QIODevice::write (QSerialPort): device not open
      General and Desktop • qt5 serialport com • • suslucoder  

      5
      0
      Votes
      5
      Posts
      38
      Views

      @suslucoder are you sure com4 is the correct name ? something seems of, I would suggest using https://doc.qt.io/qt-5/qserialportinfo.html to query for the correct port and port name
    • UNSOLVED Windows COM automation Qt and AutoCAD
      3rd Party Software • com qaxobject qaxbase dumpcpp tlb • • nadamus  

      9
      0
      Votes
      9
      Posts
      1043
      Views

      @nadamus said in Windows COM automation Qt and AutoCAD: .. Now it works, but sill I wonder why it is not working with QList and QVariant. I think the culprit is this line: *wektor=SafeArrayCreate(VT_R8,1,&granice); had it instead been *wektor=SafeArrayCreate(VT_VARIANT,1,&granice); then a QList<QVariant> should've worked. Qt's COM support is kind of stuck between a rock (everything is a VARIANT, the Visual Basic COM flavor, functions are called 100% through the IDispatch interface) and a hard place (you can pass native data types like int, doubles etc through COM, the C/C++ COM flavor, functions are called through specialized interfaces based on IUnknown). I remember doing a lot COM coding around the turn of the century, it was really hot then. Nowadays not so much :-)
    • UNSOLVED Qt ActiveX i AutoCAD
      Polish • qvariant com activex qaxbase qaxob • • nadamus  

      2
      0
      Votes
      2
      Posts
      618
      Views

      Uzupełniając moje pytanie. Próba dodania obiektu takiego jak punkt czy koło kończy się takim komunikatem.: QAxBase: Error calling IDispatch member AddCircle: Exception thrown by server Code : -2147024809 Source : Description: Help : Connect to the exception(int,QString,QString,QString) signal to catch this exception Ktoś może wie gdzie sprawdzić ten kod? Dzięki za pomoc Adam
    • UNSOLVED Whether we can use COM or ActiveX only in main thread(GUI thread)?
      General and Desktop • com qaxobject • • MartinChan  

      5
      0
      Votes
      5
      Posts
      1049
      Views

      @mrjj thx,I am astonished and I will try it soon...:(
    • SOLVED Connecting to COM object: requested control could not be instantiated
      General and Desktop • com activeqt • • koronabora  

      3
      0
      Votes
      3
      Posts
      4484
      Views

      All works well now. Thank you!
    • UNSOLVED Call functions in QAxServer from C#
      General and Desktop • com net qaxserver • • pdcavaco  

      1
      0
      Votes
      1
      Posts
      609
      Views

      No one has replied

    • UNSOLVED qaxWidget( Microsoft web browser ), load html from string
      General and Desktop • com web browser qaxwidget • • Nouriemm  

      2
      0
      Votes
      2
      Posts
      872
      Views

      Any Idea?
    • SOLVED COM object + dll
      General and Desktop • c++ dll com • • Psy_Duck  

      6
      0
      Votes
      6
      Posts
      2616
      Views

      the problem is solved or not?
    • QSerialPort communication
      General and Desktop • qserialport serial port com • • CKoch  

      2
      0
      Votes
      2
      Posts
      1201
      Views

      This might be the culprit: while (serial->waitForReadyRead(200)) This will put your thread to sleep until data has arrived or 200 ms has elapsed. QSerialPort seems to rely on the message loop to handle data so this might interfere with it (?). There is no guarantee that you will have 512 bytes of data back at once either. There is a signal (QSerialPort::readyRead() ) you can use when received data arrives. Connect this to a suitable slot and buffer what has arrived each time the signal is fired (I assume you will not get all the data at once). Do this until you have 512 bytes then process it. Keep the event loop active if you have some other 'heavy' function somewhere (QApplication::processEvents() ).
    • [SOLVED] Split Terminal example into Two threads
      General and Desktop • thread serial port multithreads terminal com multi • • Sen Li  

      14
      0
      Votes
      14
      Posts
      3719
      Views

      @Jeroen3 Thank you for your sharing!
    • Calling a CAPL function from QT using com and Canalyzr
      General and Desktop • c++ com canalyzer • • hichem  

      5
      0
      Votes
      5
      Posts
      2179
      Views

      now get_function it is ok now i want to call a function with two argument but ICAPLfunction::Call must have ten argument what should i do here my exemple: VARIANT p[10]; p[0].lVal=1;p[1].lVal=4;p[2].lVal=0;p[3].lVal=0;p[4].lVal=0;p[5].lVal=0;p[6].lVal=0;p[7].lVal=0;p[8].lVal=0;p[9].lVal=0; VARIANT r; result4=fn->Call( p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9], &r);