Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • Signals from QTableWidget

    Unsolved
    2
    0 Votes
    2 Posts
    152 Views
    JonBJ
    @Milosz Neither the cell nor the item is "changing" when user enters a time into the QTimeEdit. You have to attach a slot to that QTimeEdit's timeChanged() signal, just like you would if it did not happen to be placed as a cell widget.
  • How should I organise translations of plugins?

    Unsolved plugin translation
    4
    0 Votes
    4 Posts
    780 Views
    O
    Ok, here is my progress. Here the CMakeLists.txt of my plugin set(TS_FILES i18n/MyPlugin_en.ts i18n/MyPlugin_fr.ts ) # Adding translations qt_add_translations(MyPlugin TS_FILES ${TS_FILES} LUPDATE_OPTIONS -no-obsolete OUTPUT QM_FILES) install(FILES ${qm_files} DESTINATION ${CMAKE_INSTALL_BINDIR}) Initially the MyPlugin_*.ts files are empty, so I need to go to the i18n folder and to run lupdate there. Then I translate strings. Finally, I compile. There is no error but the strings of MyPlugin are not translated. Any idea about what is missing?
  • libtins

    Unsolved
    4
    0 Votes
    4 Posts
    357 Views
    sierdzioS
    @__d4ve__ ok but what exactly is the error printed by the compiler or linker?
  • the program freezes

    Solved
    4
    0 Votes
    4 Posts
    299 Views
    Christian EhrlicherC
    @serkan_tr said in the program freezes: My purpose is that the data coming from the serial port does not affect the program. It does not since QSerialPort is (like nearly all other I/O classes in Qt) asynchronous.
  • closing QtConcurrent::run created thread

    Unsolved
    3
    0 Votes
    3 Posts
    227 Views
    R
    Hi @Chris-Kawa I am new to Qt and there is no specific point in using QtConcurrent. I was looking for a thread method and i choosed it after watching the video in the link: https://www.youtube.com/watch?v=QcL8Sob5shk Thank you for the recommendation. I will return to QThread. It seems more efficient as you said.
  • Using QTimer in a Pushbutton QT C++.

    Unsolved
    5
    0 Votes
    5 Posts
    360 Views
    Axel SpoerlA
    @JonB Hi Jon, It was wrong to address you. I meant the OP…. Sorry for the confusion! Cheers Axel
  • accessing the QPushButton of QWindow

    Unsolved
    6
    0 Votes
    6 Posts
    420 Views
    SGaistS
    No, not show, open which allows to have the same blocking effect as exec without requiring a second event loop.
  • Unable to make a dialog modal and within bounds of GUI

    Unsolved
    2
    0 Votes
    2 Posts
    145 Views
    SGaistS
    Hi, What is your goal with opening a dialog in a widget constructor ?
  • Using QThread , Signal() , Slot() So GUI won't freeze

    Unsolved
    42
    0 Votes
    42 Posts
    6k Views
    SGaistS
    To add to my fellows, it's typically a good case for the use of invokeMethod.
  • 0 Votes
    5 Posts
    665 Views
    Christian EhrlicherC
    @vlanquepin said in QGuiApplication::commitDataRequest not received with local Qt but received with system Qt: Anyone knows how commitDataRequest works in the low-level code? Qt is open-source. I would guess it's coming from the platform integration plugin so it's either not built correctly in your local Qt or can not connect to your WM/DM.
  • How include "qfont" in "qlabel" ??

    Solved qfont qlabel
    5
    0 Votes
    5 Posts
    1k Views
    jsulmJ
    @timob256 said in How include "qfont" in "qlabel" ??: I did not understand which command to write to make it work Open documentation for setFont: https://doc.qt.io/qt-6/qwidget.html#font-prop As you can clearly see setFont does not take a pointer to QFont, but you're trying to give it a pointer. This is basic C++ knowledge. Change to: ui->label->setFont(*font); Or, even better, don't declare font as pointer...
  • QT6 on Ubuntu 22.04 strange widget behavior

    Unsolved
    34
    1 Votes
    34 Posts
    10k Views
    J
    I have found a solution. I downgraded from QT6.5.2 to QT6.4.3. Thank you all for your help
  • how to use QScroller::grabGesture in multiple scrollareas

    Unsolved
    1
    0 Votes
    1 Posts
    196 Views
    No one has replied
  • 0 Votes
    3 Posts
    316 Views
    B
    @JonB So what I should look for is getting HWND from a dragged item and using the example from StackOverflow, correct? What also about this case: I launch the application and window X showed. I selected the working path directory and then the window Y showed (which is the actual application) This is my actual workflow but I thought about this dragging approach because even If I showed the application by its HWND, window Y will be launched outside the GUI because of the different HWND (or my guess is wrong?) But anyway, do you think my desired workflow is doable?
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    10 Views
    No one has replied
  • How do I create a modeless message box?

    Unsolved
    4
    0 Votes
    4 Posts
    430 Views
    sierdzioS
    @JonB you're right, I somehow assumed such a message box should not be possible to hide behind other windows.
  • 0 Votes
    6 Posts
    817 Views
    Axel SpoerlA
    @odelaune Thanks, pls mark the thread solved!
  • How to browse my latest actions (based on Alt + left or right arrow)

    Unsolved
    2
    0 Votes
    2 Posts
    163 Views
    Christian EhrlicherC
    What are you trying to tell us?
  • Primary key purpose

    Unsolved
    3
    0 Votes
    3 Posts
    284 Views
    C
    @Saviz In your table the primary key column, your auto-incrementing surrogate key, does contain unique values. You can update one record independent of the other using that number to identify the record. If you intended that the combination of first and last name was unique (i.e. a "natural" key) then you need to enforce that either in your code, or with a second unique, compound index on the table, e.g. create unique index blah on workers(first_name, last_name); (If you use the index be prepared to handle the failure to insert) If that was your intent then please consider that real world names are generally not unique and this is precisely the reason you want a surrogate key in the first place. The Qt models and views rely on a single column, numeric primary key to identify records without needing business domain knowledge to determine identity.
  • get soap auth for dpd.com in QT C++

    Unsolved
    2
    0 Votes
    2 Posts
    219 Views
    Axel SpoerlA
    @Jakobm789 Could you post your entire code, please? The event loop has to spin and the timeout looks a bit like blocking code or early exit.