Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.1k Topics 454.6k Posts
QtWS25 Last Chance
  • Starting second wsl QProcess kills the first one

    Solved
    4
    0 Votes
    4 Posts
    74 Views
    M
    @JonB You're right. I always launch one wsl process in one cmd window, and wsl processes in different cmd windows can live with each other. Now I tried launching multiple wsl processes in one cmd using start /b, the result is the same as this demo application: all wsl processes will exit immediately. So the problem is multiple wsl processes cannot be launched by a single parent. It has nothing to do with QProcess.
  • Best practices forward-declaring QStringList (and other containers) in Qt6?

    Solved
    2
    0 Votes
    2 Posts
    76 Views
    Christian EhrlicherC
    Include QStringList header
  • Using qt for a commercial application on windows (LGPL)

    Unsolved
    71
    0 Votes
    71 Posts
    4k Views
    J
    @JKSH Sorry, i have another question. In this video https://www.youtube.com/watch?v=bwTlCBbB3RY at the 18:20 he talking about "Displaying License and Copyright in GUI": It looks like for each module I need to specify the copyright (and not just the Qt copyright, but all the copyrights from all the source files in the module), the GPL/LGPL license text, modifications (if any), the used-license (what is that? Should we just show the LGPLv3 text when clicking on this menu or something else?). So I need to duplicate this information for each Qt module I will use and it is not enough to provide the common text for all modules once?
  • Visual issue with QRadioButton on Android – no selection dot shown

    Unsolved
    4
    0 Votes
    4 Posts
    85 Views
    jsulmJ
    @thomasGl You can do that with https://doc.qt.io/qtdesignstudio/
  • 0 Votes
    1 Posts
    32 Views
    No one has replied
  • [Unit Test Coverage] How can the industry improve QT code coverage

    Unsolved
    4
    0 Votes
    4 Posts
    92 Views
    SGaistS
    Hi and welcome to devnet, For testing frameworks, Qt already provides the QTest module which works pretty nicely. As for the rules, there's mainly one: test both happy and unhappy code paths. That way you ensure that your code is working when everything goes well as well as when issue arise.
  • QHttpServer - how to determine request processing time?

    Unsolved
    2
    0 Votes
    2 Posts
    105 Views
    SGaistS
    Hi, I don't think you missed anything. One possible I can imagine is to create a wrapper function that you would use in your route that would measure the execution time of the real function that you would have passed to said method.
  • Question about store data

    Unsolved
    3
    0 Votes
    3 Posts
    91 Views
    D
    @Pl45m4 honestly, I haven't decided how best to implement it, I thought maybe there was another alternative? I didn't fully understand what you meant, just store in the auxiliary structure not the data but the list of connections?
  • MacOS file system icons have changed

    Solved
    12
    0 Votes
    12 Posts
    489 Views
    S
    Seeing this behavior on Windows with 6.8.3, was there a QTBUG tracking this behavior and/or fix that may have more information?
  • Access violation at qsql_oci when executing/preparing QSqlQuery

    Solved
    7
    0 Votes
    7 Posts
    196 Views
    Y
    @Christian-Ehrlicher Thank you. I found that after I add -DCMAKE_BUILD_TYPE=Debug when I build qoci the qsqlocid.dll, etc. are built and installed, then the problem can be fixed
  • noexcept build errors after updating to 6.9.0

    Unsolved
    3
    0 Votes
    3 Posts
    71 Views
    G
    @Christian-Ehrlicher I'm using gcc 8.5.0 I honestly can't tell where in the code the error is occuring because the output is so long. I've been building this applciation for years using various versions of Qt, but I haven't seen these errors before. It builds without error under Qt 6.6.3. I can try a simple program to see if I also get the errors there.
  • QDialog with Qt::WindowModal on mac

    Unsolved
    6
    0 Votes
    6 Posts
    726 Views
    K
    Currently, my dialog is something like this (see attached image) i..e no title bar. I want it to be a modal which blocks interaction with it's parent and at the same show title bar. Above solution doesn't works for mac. However below code works fine on ubuntu 22.04. I think this is platform specific issue. class MyDialog(QtWidgets.QDialog): def __init__(self, parent=None): super().__init__(parent=parent) self.setWindowTitle("My Dialog") # Set modality to WindowModal self.setWindowModality(Qt.WindowModal) # Set appropriate window flags # self.setWindowFlags(Qt.Dialog | Qt.Window) # Set up the layout layout = QtWidgets.QVBoxLayout(self) layout.addWidget(QtWidgets.QLabel("This is a dialog!")) self.setLayout(layout) class MainWindow(QtWidgets.QMainWindow): def __init__(self): super().__init__() self.setWindowTitle("Main Window") self.setGeometry(100, 100, 300, 200) # Add a button to the main window self.button = QtWidgets.QPushButton("Show Dialog", self) self.button.setGeometry(100, 80, 100, 40) self.button.clicked.connect(self.show_dialog) def show_dialog(self): dialog = MyDialog(self) # Create dialog with main window as parent dialog.show() # Show the dialog (exec creates a modal dialog) [image: 2b98569d-09be-42a2-8c14-987c693745f7.png] This is how it looks on Ubuntu---- [image: c6c43930-8717-429d-af63-363e1ffd849c.png]
  • 0 Votes
    5 Posts
    134 Views
    JonBJ
    @mirro As @SGaist says. stackoverflow is really the reference for questions about programming, be that C++ or PowerShell, e.g. start from https://stackoverflow.com/questions/tagged/powershell. You will have to be quite "formal" in a posted question, e.g. your code would need posting as text not as a screenshot.
  • QPdfDocument crashes on linux

    Unsolved
    2
    0 Votes
    2 Posts
    91 Views
    hskoglundH
    Looks like a debug build to me, maybe mixing release and debug is not a good idea on a Raspberry Pi. Also, it is a Raspberry 5 not a 4, right?
  • 0 Votes
    1 Posts
    77 Views
    No one has replied
  • Qt 6.9 ds-build conflicts with ds-src

    Solved
    5
    0 Votes
    5 Posts
    145 Views
    Y
    @Christian-Ehrlicher Hi, I found that if I downgrade CMake to 3.28 and change line 20 back to FetchContent_Populate then the CMake build can run successfully. I learned that different from FetchContent_Populate, FetchContent_MakeAvailable not only downloads and unpacks the content but also automatically adds it to my build by calling add_subdirectory() internally. Aftter I remove add_subdirectory(${ds_SOURCE_DIR} ${ds_BINARY_DIR}) then the CMake build can run successfully
  • 0 Votes
    2 Posts
    75 Views
    Christian EhrlicherC
    I tested it with a recent Qt6 version and could not see any pushbutton at all.
  • 0 Votes
    3 Posts
    81 Views
    L
    I tried all the ViewportUpdating Modes of QGraphicsView but it didn't work. However, when I didn't set QOpenGlWidget to the viewPort of QGraphicsView, triggering an update for a single item in the same scence wouldn't trigger the paint function for other items
  • No supported format in QAudioFormat

    Solved
    2
    0 Votes
    2 Posts
    43 Views
    DanekoD
    I updated to Qt 6.9.0 and Qt Creator 16.0.1 and problem disappeared!
  • QDBusConnectionManager hanging on exit

    Unsolved
    10
    0 Votes
    10 Posts
    587 Views
    M
    Hello Dale, would it be possible for you to share what you did to make it work? Even though you call it a hack it would be interesting to see how it is possible to prevent the code from hanging during shutdown.