Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • Statically link a Qt program?

    Unsolved
    2
    0 Votes
    2 Posts
    190 Views
    AxelViennaA
    You cannot link a Shared Library statically. To link Qt statically, you have to compile a static version for your OS. here is a detailed description how to do this.
  • How to set Qt forum website to dark mode?

    Solved
    11
    0 Votes
    11 Posts
    931 Views
    P
    @JKSH OK here it is: https://bugreports.qt.io/browse/QTSYSADM-336
  • Mixing Qt and plain old C-style OpenGL?

    Unsolved
    1
    0 Votes
    1 Posts
    136 Views
    No one has replied
  • Get executable path on linux

    Solved
    3
    0 Votes
    3 Posts
    641 Views
    H
    @ChrisW67 Thanks
  • 0 Votes
    6 Posts
    572 Views
    Z
    Thank you both so much!! This seems like a really cool solution, I'll implement it later today! Thanks again
  • Kill a process and its children

    Solved
    34
    0 Votes
    34 Posts
    13k Views
    H
    @kshegunov said in Kill a process and its children: Use a different program, one that's aware it may be notified from the outside (i.e. one running an event loop), or open a feature request with the developers of the one you'd wanted to use. Ok thanks for the info, really appreciate it.
  • GR-805 : DX9 Overlay is DISABLED ERROR

    Unsolved
    6
    4 Votes
    6 Posts
    2k Views
    Cobra91151C
    @MaskedKasper So, clean install does not fix this issue. I switched back to 472.12 driver. Also, I have contacted the support team and they suggested to report it here: https://www.nvidia.com/en-us/geforce/forums/game-ready-drivers/13/471331/geforce-49613-grd-feedback-thread-released-101221/ You can also report it there.
  • 3D line Chart using Qt

    Unsolved
    3
    0 Votes
    3 Posts
    264 Views
    Negar_mgN
    thanks alot
  • How to speed up a function using QProcess and reading from stdout?

    Unsolved
    3
    0 Votes
    3 Posts
    556 Views
    JonBJ
    @mario12136 As @jeremy_k has written, using the signal instead of blocking will keep your UI application "responsive". You can also use the signal on new data arriving on stdout to read it in real-time if the subprocess produces and flushes output as it goes along. However I am not clear what your question is. If you need to get the result back from your subprocess then ultimately you cannot get that till it is finished, and if that takes a noticeable amount of time then that's how it is. You cannot "speed up" how long the process takes to run, and reading from stdout is a negligible overhead in itself. Maybe that program can accept multiple file paths at a time on its command line and produce output on each of them in a single invocation, that might speed up the overall time for many files. Maybe you can do this somehow faster without going via some external process, but that requires you open and read the files yourself, perhaps through some library. But not a Qt issue.
  • Qwidget's size not get updated ?

    Solved
    2
    0 Votes
    2 Posts
    204 Views
    JonBJ
    @junzhe-fan said in Qwidget's size not get updated ?: but both of them look stretched out to align with the Width of my MainWindow So are you saying they do appear correctly? Printing out widget widths/heights e.g. just after creating them does not deliver meaningful results. Dimensions only get set correctly after a widget has been shown, as that is when Qt calculates them.
  • Which best parallel library for For,Loop case in Qt and linux

    Unsolved
    2
    0 Votes
    2 Posts
    295 Views
    SGaistS
    Hi, Qt is a C++ library so whatever the C++ library you want to use, there should be no issues. As for the library, it so dependent on what you are going to do that there's likely no single correct answer. As for OpenMP, yes you can use it.
  • retrieve text inside QLineEdit inside QTableWidget

    Solved
    3
    0 Votes
    3 Posts
    397 Views
    L
    @JonB i did follow your advice and used the pointer, my error was the lack of the pointer and now its working properly, thanks working code: QLineEdit *a = widget_PP.Registros_General->cellWidget(1,1)->findChild<QLineEdit*>(); // this works QLineEdit *a = qobject_cast<QLineEdit*>(widget_PP.Registros_General->cellWidget(1,1)) // doing object cast works as well
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • How to set Stylesheet specifically for a derived QProgressDialog

    Solved
    2
    0 Votes
    2 Posts
    288 Views
    Z
    OK I have fixed it. I wrote color: white; before the specific sheet codes, which seems to make TP_ProgressDialog { background-color: rgb(0,0,0); } invalid.
  • Release app with another mac address in Qt

    Unsolved
    5
    0 Votes
    5 Posts
    433 Views
    mrjjM
    Hi Do you know the next MAC address the app should work on? If this is for app protection it won't be very solid. Can you explain why you did this check ?
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    13 Views
  • QtMultimedia examples crash

    Unsolved
    6
    0 Votes
    6 Posts
    759 Views
    M
    @Pl45m4 $ gcc --version gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
  • Async and QPainter, printing function

    Unsolved
    8
    0 Votes
    8 Posts
    604 Views
    L
    @jsulm sorry to answer so late, but yes i did include the future header and yet it didnt work properly i had to optimice the data send to print and it worked better so no need for asinc at the moment
  • Error due to Opencv but Qt does not show error message

    Solved
    12
    0 Votes
    12 Posts
    888 Views
    DQUY05D
    @jsulm said in Error due to Opencv but Qt does not show error message: @DQUY05 said in Error due to Opencv but Qt does not show error message: has finished with exit code 0 This looks like your app simply finishes without any errors. Is your app actually doing anything? Thank you for your help, I solved the problem, it is true that with MinGw64 it was necessary to use OpenCV64, I changed it, and had to restart the IDE, now it is working fine. Many thanks !
  • 0 Votes
    2 Posts
    215 Views
    S
    @senmx install_name_tool -change "mylib.dylib" "@rpath/mylib/mylib.dylib" xx.app/Contents/MacOS/xx And copy mylib.dylib to xx.app/Contents/Frameworks/mylib/