Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Using Q_SIGNAL/Q_SLOT Dsiplays invalid Errors in QTCreator

    Solved
    11
    0 Votes
    11 Posts
    535 Views
    L
    Great! Thank you.
  • 0 Votes
    3 Posts
    939 Views
    S
    Hi, unfortunately not. I had to develop a wrapper to a python 3d library, i.e., mayavi, which provides very good and customizable antenna pattern representation. If you're familiar with python I suggest to move to that platform for this purpose.
  • Qt and SSMS Express

    Unsolved
    4
    0 Votes
    4 Posts
    281 Views
    mrjjM
    @SeyMohsenFls Hi Well you would create an Installer for your app and then bundle the SQL Express installer with that and make it install the DB system as part of your app's setup. https://www.hanselman.com/blog/download-sql-server-express Qt has an install maker but it has a hard learning curve IMHO I like this one https://jrsoftware.org/isinfo.php
  • How to kill a timer

    Solved
    12
    0 Votes
    12 Posts
    3k Views
    mrjjM
    @Driftwood Hi https://doc.qt.io/qt-5/qtimer.html#timerId
  • Unicode in the C++ code

    Solved
    7
    0 Votes
    7 Posts
    831 Views
    S
    @JKSH said in Unicode in the C++ code: Thanks. So I settled on using wchar_t and also QString::fromWCharArray() and that is able to post text properly: editbox->setText(stuff.........);
  • Set TextureData to a Texture2D or Texture3D in Qt3D

    Unsolved qt3d qml javascript
    2
    0 Votes
    2 Posts
    574 Views
    S
    It's been a long time since I used OpenGL. OpenGL version 1.1 to 2.1 handle power of 2 textures. I think it is with GL 3.0 that non pow-2 textures work. I think you have to explicitly create a GL 3.0 or above context. But I could be wrong. Also, try making a 256 x 256 or 256 x 512 or 512 x 512 texture.
  • Not trigger readyRead in another device (same LAN) when send multicast

    Solved
    6
    0 Votes
    6 Posts
    408 Views
    S
    @SGaist I found solution for it. I use share network from my PC to jetson nano device so it make different subset: 10.42.0.* and 192.168.1.* After plug both PC and jetson nano with same router, it worked Thanks for your support
  • What might be causing the errors reported here?

    Unsolved
    3
    0 Votes
    3 Posts
    336 Views
    JoeCFDJ
    add #include <QString> in test.h
  • QTreeView scroll bar overlaps header row?

    Solved
    4
    0 Votes
    4 Posts
    725 Views
    JoeCFDJ
    @davecotter pretty much so.
  • qt MouseEvent -> QGestureEvent

    Unsolved
    2
    0 Votes
    2 Posts
    221 Views
    mrjjM
    Hi What you mean ? When you get mouseMove events you want to make a fake GEstureEvent and send it to some function ? I think you can do it via https://doc.qt.io/qt-5/qgesturerecognizer.html but I'm sure if it will work as we expect.
  • Instantiate widgets with a list of check boxes and QPair

    Solved
    5
    0 Votes
    5 Posts
    316 Views
    D
    Yep, sorry. I didn't erase because I thought it was necessary but it is already declared in the for loop. Thanks!
  • qt.bluetooth.bluez: SDP scan failure QProcess::ExitStatus(NormalExit) 3

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    B
    Hi, About this example, you need set discovery at system, or set by code; set by code refer to this link: https://forum.qt.io/topic/80919/qtbluetooth-not-discovering-services
  • Downloaded size of the file does not match to the actual file size

    Unsolved
    3
    0 Votes
    3 Posts
    219 Views
    artwawA
    @Dharani-Prasad most likely you are downloading something else (been redirected to a different webpage maybe?). Please show your code or minimum working compilable example so we can help.
  • 0 Votes
    23 Posts
    4k Views
    SGaistS
    You do realise that you are trying to build the 5.15 branch while your system has 5.5 installed ?
  • Errors when tryin to create standalone executable

    Unsolved
    2
    0 Votes
    2 Posts
    183 Views
    sierdzioS
    If you don't need a static build, consider going the standard and easy way: compile your app normally run windeployqt to deploy it that's it ;-)
  • QTimer used to time adding to a QList for specified time?

    Unsolved
    5
    0 Votes
    5 Posts
    755 Views
    J.HilkJ
    @Calicoder since you're a beginner, let me give you an example as complex and convoluted as possible.... 🤣 int main(int argc, char *argv[]) { QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication app(argc, argv); QTimer timerToAddtoList; QElapsedTimer elapsedTime; QList<qint64> listToAppendTo; QObject::connect(&timerToAddtoList, &QTimer::timeout, [&]()->void{ listToAppendTo.append(elapsedTime.elapsed()); if(elapsedTime.elapsed() > 500){ //500 ms timerToAddtoList.stop(); qDebug() << listToAppendTo; QCoreApplication::quit(); } }); elapsedTime.start(); timerToAddtoList.start(0); // 0 == 0ms == fire as soon as possible return app.exec(); } No seriously this contains everything you want to have, all in main. With some exotic stuff sprinkled in, to make it happen. Could be a good "exercise" to break this up in a proper class or something similar! If I should explain more, tell me so :D
  • Downloading Qt 6.2 Beta

    Unsolved
    2
    0 Votes
    2 Posts
    187 Views
    JKSHJ
    @jeffB100 said in Downloading Qt 6.2 Beta: There's no link on the post announcing it. https://www.qt.io/blog/qt-6.2-beta-released does say "We will continue to provide subsequent beta releases via the online installer throughout the beta phase." So just use the regular online installer (or MaintenanceTool if you have an existing Qt installation). You can then select the beta as a component to add to your installation: [image: b742c8ce-6ecc-4aeb-901f-33881433761f.png]
  • DTLS. "dh key too small" but TLS works

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    B
    After long time of tests i have established connection. Raspberry uses DHE-PSK-AES256-GCM-SHA384 cipher (dont know why). I set "m_serverConfiguration.setCiphers({QSslCipher("ECDHE-PSK-CHACHA20-POLY1305")})" and that works but that is temporary solution. PS: ECDHE-PSK-CHACHA20-POLY1305 chooses when server works on my desctop (ubuntu) By the way, i have tried to connect from console (from desctop): openssl s_client -dtls1_2 -connect 192.168.0.103:3000 -psk 70736b -psk_identity 6eccf762dfb624c9b915f4b34238431c. and see similar error: misha@misha-xigmater:~$ openssl s_client -dtls1_2 -connect 192.168.0.103:3000 -psk 70736b -psk_identity 6eccf762dfb624c9b915f4b34238431c CONNECTED(00000003) Can't use SSL_get_servername 140501839738176:error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small:../ssl/statem/statem_clnt.c:2149: --- no peer certificate available --- No client certificate CA names sent --- SSL handshake has read 453 bytes and written 561 bytes Verification: OK --- New, (NONE), Cipher is (NONE) Secure Renegotiation IS supported Compression: NONE Expansion: NONE No ALPN negotiated SSL-Session: Protocol : DTLSv1.2 Cipher : 0000 Session-ID: Session-ID-ctx: Master-Key: PSK identity: None PSK identity hint: None SRP username: None Start Time: 1629932016 Timeout : 7200 (sec) Verify return code: 0 (ok) Extended master secret: yes But there is all ok if i connect from raspberry (where server works): CONNECTED(00000003) Can't use SSL_get_servername --- no peer certificate available --- No client certificate CA names sent Server Temp Key: DH, 1024 bits --- SSL handshake has read 751 bytes and written 822 bytes Verification: OK --- New, TLSv1.2, Cipher is DHE-PSK-AES256-GCM-SHA384 Secure Renegotiation IS supported Compression: NONE Expansion: NONE No ALPN negotiated SSL-Session: Protocol : DTLSv1.2 Cipher : DHE-PSK-AES256-GCM-SHA384 Session-ID: 6F647EAB003A3669714D295D45BA190F0B01A1212E59FBB946FD8097298EFC23 Session-ID-ctx: Master-Key: 63A0046E9BB5E5DE9EA76BB822319DABF543F13A0AE864B84D405AB955705F0A3E5286892D07BC194D13B19DFF5E31BA PSK identity: 6eccf762dfb624c9b915f4b34238431c PSK identity hint: None SRP username: None TLS session ticket lifetime hint: 7200 (seconds) TLS session ticket: 0000 - 90 7f 32 5d 7f 65 48 50-14 19 41 da 13 7b 67 c6 ..2].eHP..A..{g. 0010 - 7c 73 3d 57 0f 4e bc 6a-58 81 a2 0f 05 62 6e ee |s=W.N.jX....bn. 0020 - f4 83 d4 a7 c7 10 3b 0b-9e 09 1c 01 e1 87 0b 6b ......;........k 0030 - a7 33 64 97 21 e3 e2 d7-ef 13 4e 7e 26 ee e1 84 .3d.!.....N~&... 0040 - 46 c2 bc 92 21 ef ad 05-f3 f6 b5 62 9a bc 19 14 F...!......b.... 0050 - 9f 8f 68 8c f0 f2 6e 39-fe df eb a2 0d 7e 27 70 ..h...n9.....~'p 0060 - df b6 f1 5d c7 93 75 9d-4f 7f 2e 44 9b 07 ad b5 ...]..u.O..D.... 0070 - ac ce 07 c3 e9 51 be 6e-0b ec 77 37 a5 7e 75 33 .....Q.n..w7.~u3 0080 - 0f 7e 64 a8 ab 29 57 aa-35 eb a7 bd 88 49 4b 3e .~d..)W.5....IK> 0090 - 00 b7 66 0b f1 51 d2 f7-2e 2b 07 48 4e d0 fb 78 ..f..Q...+.HN..x 00a0 - 44 fe 4b 8f 13 92 a3 ca-c1 2a b7 58 d0 74 bd 8a D.K......*.X.t.. 00b0 - 1f cb fa 6c 22 9f 98 fb-24 a0 d4 b5 65 34 dc 23 ...l"...$...e4.# Start Time: 1629932165 Timeout : 7200 (sec) Verify return code: 0 (ok) Extended master secret: yes
  • Identifying Qt Version at runtime

    Solved
    2
    0 Votes
    2 Posts
    2k Views
    jeremy_kJ
    qVersion() returns a const char * C string, for example "5.15.2". QLibraryInfo::version() breaks it out into components.
  • Open one Qt app (not as a process) in another Qt app as a dock widget

    Unsolved
    6
    0 Votes
    6 Posts
    510 Views
    SGaistS
    Integrate the main widget directly in your application. So you have a single application.