Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • Qt Creator Plugin for Qt Application Manager

    Unsolved
    2
    0 Votes
    2 Posts
    144 Views
    E
    Or where comes QtApplicationManager.SystemUI or QtApplicationManager.Application for importing in QML-files? This Qt Creator Plugin may need some extra license (but i don't know i need it)?
  • QNetworkAccessManager: UnknownNetworkError in Windows

    Solved
    3
    0 Votes
    3 Posts
    654 Views
    AxelViennaA
    @jsulm: Thanks for pointing to this direction. Installing OpenSSL from https://slproweb.com/download/Win64OpenSSL-1_1_1k.msi did the trick. My problem was that I had installed the light install version which obviously has no headers included. Issue solved.
  • Disable jpeg in .pro file? (Linux problem)

    Unsolved jpeg linking linux
    2
    0 Votes
    2 Posts
    505 Views
    mrjjM
    Hi https://doc.qt.io/qt-5/qtimageformats-index.html The core Qt Gui library contains the code for JPEG so recompile is needed to get rid of it. However, are you sure its a clash ? I mean the JPEG is wrapped into Qt and classes so clashing with a free function seems unlikely.
  • QScrollArea with "negative" values

    Unsolved
    3
    0 Votes
    3 Posts
    272 Views
    C
    Thank you. That looks very nice at first glance! I'll look into it!
  • 0 Votes
    14 Posts
    3k Views
    A
    @KroMignon said in how to send the data from the server to the client continuously, every 1000 ms under TCP/IP , using QTcpsocket and QTcpserver: socket->delateLater(); deleteLater(), I added it and everything works wonderfully, thank you again.
  • QUrl can't parse some web urls

    Unsolved
    4
    0 Votes
    4 Posts
    296 Views
    H
    @eyllanesc QString url = "https://lichess.org/vAArADOV3ege"; QNetworkAccessManager manager; manager.setRedirectPolicy(QNetworkRequest::SameOriginRedirectPolicy); QNetworkReply* response = manager.get(QNetworkRequest(QUrl(url))); QEventLoop event; QObject::connect(response, SIGNAL(finished()), &event, SLOT(quit())); event.exec(); qInfo() << response->errorString(); "Host not found." @JonB said in QUrl can't parse some web urls: @Harry56 Hello and welcome. Purely a guess. When I paste your first working URL, https://lichess.org/Mq8MR9ri, into Chrome, it takes me to that exact URL. But when I paste your second non-working URL, https://lichess.org/vAArADOV3ege, it seems to redirect me to https://lichess.org/vAArADOV/black. Is this significant? Yes, https://lichess.org/vAArADOV/black works, but why does redirect not works? Thanks for answering
  • H.264/TS video streaming in Qt Application. How?

    Unsolved
    19
    0 Votes
    19 Posts
    3k Views
    chaupadC
    @MrShawn did you see "unresolved external" problems when build the qt-vlc source code with QtCreator (MSVC 2019). ? I checked the headers and source file, they are ok but they keep showing error like that. I run steps to build from guideline in here https://github.com/vlc-qt
  • PC apllication to send SMS with SIM CARD + GSM/GPRS modem

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    Q
    Did you find this library?
  • How to resolve below warning at runtime ?

    Solved
    8
    0 Votes
    8 Posts
    776 Views
    JonBJ
    @SGaist said in How to resolve below warning at runtime ?: I suppose that KEYBOARD_CMD is a define containing florence ? Seemingly not, as the OP originally showed #define KEYBOARD_CMD "florence" i.e. with the quotes. @Qt-embedded-developer @KroMignon asked you to try pMainApp.ObjSysOperation.SendSystemCommand(" pkill " KEYBOARD_CMD, sResponse, sError); Note the space before KEYBOARD_CMD. You claimed "yes" you had tried this. Did you actually do so? Please now show this line as you have it in your code together with a copy-paste of the C++ warning, which would now be: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] pMainApp.ObjSysOperation.SendSystemCommand(" pkill " KEYBOARD_CMD, sResponse, sError);
  • Get single line from QFile

    Solved
    5
    0 Votes
    5 Posts
    359 Views
    jsulmJ
    @Creatorczyk seek() works with bytes, not lines. In your first post you did not say that "position 5" means line 5 and not byte 5. If you want to get the line number n you have to read and skip lines 0..n-1: for (int i = 0; i < 2; ++i) file.readLine(); QString line = file.readLine(); Keep in mind: this code does not have any error handling (you could have less lines in the file than you expect).
  • Multipart upload problem

    Solved
    4
    0 Votes
    4 Posts
    201 Views
    J.HilkJ
    @AxelVienna please don't force synchronous behaviour on asynchronous apis QEventLoop loop; QObject::connect(reply, &QNetworkReply::finished, &loop, &QEventLoop::quit); loop.exec(); That's inviting all kinds of strange behaviour and hard to track down bugs.
  • snmp in qt

    Unsolved
    5
    1 Votes
    5 Posts
    3k Views
    C
    @sitesv said in snmp in qt: IS there any ways to create a snmp client and server in qt? SNMP is implemented using UDP (port 161 and 162) as the transport. It is quite straightforward to use Qt networking to send and receive these datagrams, you would just need to (de)construct the datagram payloads. The net-snmp library can probably help with a lot of the problem. Your application may need to run with elevated privilege to access the low ports.
  • What is minimum steps i need to follow to access virtual keyboard in linux ?

    Unsolved
    13
    0 Votes
    13 Posts
    920 Views
    SGaistS
    That does not answer my question.
  • what is reason behind below error ? how to resolve it ?

    Solved
    9
    0 Votes
    9 Posts
    542 Views
    SGaistS
    Then you have the information to build the module.
  • Custom TableWidget QHeaderView

    Unsolved
    2
    0 Votes
    2 Posts
    222 Views
    JoeCFDJ
    my m_tableWidget->horizontalHeader() is not null. Why is yours null? Which Qt version? Mine is Qt 5.15.2.
  • QCombobox in a QTable header label

    Unsolved
    7
    0 Votes
    7 Posts
    484 Views
    VRoninV
    @CEO said in QCombobox in a QTable header label: it would be more appropriately to look through someone's code to see the line one could be making mistake and advising instead of just directing one to a llink of long lectures? I agree totally but I can't write python, I can guess what your program does by reading it but I wouldn't be able to tell you what to chage line-by-line. I stand on the fact that setCellWidget should not be used in this case. Especially with a db backend as it will slow down to a crawl after a few items are inserted
  • This topic is deleted!

    Solved
    10
    0 Votes
    10 Posts
    68 Views
  • Slot with pointers as a parameters

    Unsolved
    6
    0 Votes
    6 Posts
    497 Views
    N
    @jsulm Ok, thank you
  • 0 Votes
    5 Posts
    368 Views
    Petross404_Petros SP
    I removed the GraphicsView handler after all. It wasn't worth it. Thank you very much for your help.
  • No actions in Qt, after I entered the Cin() data.

    Unsolved
    11
    0 Votes
    11 Posts
    901 Views
    jsulmJ
    @mgstanley You can see the build folder in project settings in QtCreator. Usually it is net to project folder (but not inside the project folder).