Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.5k Posts
  • [Qt Installer Framework] How to run a shell script after installation is finished?

    Solved
    3
    1 Votes
    3 Posts
    1k Views
    N
    Thank you for your help.I consider that the point is that executing .sh should be in Component when status of installer is Succcess.
  • Ubuntu 22.04 with Qt 6.3.0 and OpenSSL

    Solved
    11
    1 Votes
    11 Posts
    8k Views
    keksi venksiK
    @PatG thanks, This helped me
  • Couldn't loading .png or .jep picture,by qt create Running Executable

    Solved
    9
    0 Votes
    9 Posts
    945 Views
    MaybecuteM
    @JonB Thank you i application is normally running Pictures (⁠◠⁠‿⁠◕⁠) . [image: fed506fc-8f36-40bf-8c4a-cf3c0dcd324f.png]
  • Help with signal/slots in a worker thread running an infinite loop!

    Solved
    5
    0 Votes
    5 Posts
    448 Views
    D
    Hi sorry, I was in the midst of rewriting the code to a simpler example, but decided to try adding Q_INVOKABLE in front of the function that was not working in the .h file. Now it works! Thanks.
  • Help with qhelpgenerator

    Solved
    9
    0 Votes
    9 Posts
    835 Views
    PerdrixP
    opening the qhc file with assitant rather the the .qch file makes a huge difference!!!
  • 0 Votes
    5 Posts
    502 Views
    K
    @Pl45m4 said in How to dynamically hide/show widgets in a custom QWidget-based toolbar on window resize?: OP asked how caculate the visibility of toolbar items, not the toolbar itself. The toolbar should always be visible, if I understood correctly. I misunderstood earlier — I thought he was showing or hiding the whole toolbar. If the toolbar is a toplevel widget or its parent is the MainWindow, then yes, it still makes sense to handle it the way I mentioned. From MainWindow::resizeEvent(), he should pass the size information to the toolbar so it can decide which items to show or hide based on the available space.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    12 Views
    No one has replied
  • POST request from curl example

    Solved
    17
    0 Votes
    17 Posts
    3k Views
    SGaistS
    Yes, by default Qt builds dlopens OpenSSL.
  • QHttpServer and large file

    Unsolved
    7
    0 Votes
    7 Posts
    805 Views
    K
    Congratulations! Glad to hear you got it resolved. I noticed that QtHttp uses socket->waitForBytesWritten(-1); when writing chunks — it’s a simple and straightforward approach. I’m still curious why QHttp doesn’t apply the same method.
  • 0 Votes
    3 Posts
    532 Views
    Y
    That makes sense, thank you.
  • Making the VSProject and Binary executable named differently

    Unsolved
    2
    0 Votes
    2 Posts
    185 Views
    Pl45m4P
    @Pixelord said in Making the VSProject and Binary executable named differently: I looked into the pro file, and tried to change the TARGET name to change the exe project name. It worked, but issue is, it also change the name of the binary output. The project name in QMake is set by the name of the *.pro file. Unlike CMake where everything is named CMakeLists.txt and within that file there is the option for a project(....) command. And as you've already said, the TARGET is for your platform-independent binary output. e.g. foo.pro by default results in a foo project with a foo.exe/foo.dll/foo.so etc. binary. If you want to rename the project you are working on, rename foo.pro to like helloworld.pro and then set separate name(s) for your target(s).
  • How to kill yourself in qt program?

    Solved
    10
    0 Votes
    10 Posts
    1k Views
    JonBJ
    @mirro I already answered: @JonB said in How to kill yourself in qt program?: @mirro Why not tell us whether in that case your SERVICE_CONTROL_STOP code is actually hit, or would you like us to guess? Do you not think we need to know whether your function is being hit? Just pasting more code and not telling us what does/does not happen is not helpful when asking a question. Also this now a Windows programming question, nothing to do with Qt.
  • QFileDialog::getOpenFileName works differently on Windows and on MacOS

    Solved
    10
    0 Votes
    10 Posts
    1k Views
    SGaistS
    @SimonSchroeder I need to get my glasses fixed ! I missed the ; while reading 😅
  • Can All These Features Be Implemented in a Qt-based Windows Desktop Application?

    Unsolved
    5
    0 Votes
    5 Posts
    542 Views
    R
    Thankyou @Pl45m4 for the detail link.
  • Solved!!!:Error: undefined reference to `vtable for MyClass'

    Solved
    1
    0 Votes
    1 Posts
    87 Views
    No one has replied
  • Static build Qt 5.15.16 to use QGLWidget with Mint 22.1

    Solved
    6
    0 Votes
    6 Posts
    610 Views
    ZizinZ
    It works! [image: d3b628f8-c13d-49ac-8474-d9b8af794be4.png]
  • QWidget top level widget

    Unsolved
    21
    0 Votes
    21 Posts
    5k Views
    Z
    @Alexey-Serebryakov thank you
  • Newcomer Ignorance

    Unsolved
    7
    0 Votes
    7 Posts
    766 Views
    K
    In Qt3, QVBox is a widget, not a QVBoxLayout. You have two options to handle this: Recreate QVBox by subclassing QWidget. Inside it, use a QVBoxLayout to arrange the child items. Make LCDRange inherit from QWidget, add the slider into a QVBoxLayout inside it, and adjust the layout to match the original logic. Hope this helps you!
  • QStorageInfo::isReadOnly() returns wrong state?

    Solved
    9
    0 Votes
    9 Posts
    948 Views
    I
    @Kevin-Hoang , @SGaist I appreciate your reply. It is a clear understanding of my problem. Thanks again!
  • How to check if MySQL connection is alive?

    Solved mysql connect alive
    2
    0 Votes
    2 Posts
    438 Views
    SGaistS
    Hi, One possible thing you could try is grab the database handle and use the mysql_ping method. Haven't done it myself so I can't guarantee