Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • QObject Pointer deleteLater() Question

    Unsolved
    4
    0 Votes
    4 Posts
    337 Views
    jeremy_kJ
    @Rich-Bair said in QObject Pointer deleteLater() Question: Also, is it safer to break all connects first using disconnect(&ptr, nullptr, nullptr, nullptr) before deleteLater()? The QObject destructor handles disconnecting connections to and from the object.
  • 0 Votes
    2 Posts
    335 Views
    SGaistS
    Hi, Because you can't copy QObject based classes. You should allocate your model on the heap and your property should return a pointer to a QStringListModel.
  • Drag and Drop within a QWindow window container on Linux

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    SGaistS
    RHEL is not the only one that is not working. KDE Neon is also concerned. I do wonder if it's not related to the commented out code that you can see in the patch you linked.
  • Best way to format text in this specific case (overlapping highlighting)?

    Unsolved
    3
    0 Votes
    3 Posts
    238 Views
    Z
    Thank you so much for replying! I actually tried to do it this way when I had just started using QT and was unable to so I wanted to confirm I wasn't doing it wrong before attempting again. It worked now. Thank you so much!
  • QDesktopServices::openUrl(QUrl::fromLocalFile()) strange behavior

    Solved
    11
    0 Votes
    11 Posts
    1k Views
    H
    Update: I really think @JonB is right, it's was a Windows behavior rather than Qt's. After switching back to VLC as the default app for .mkv, calling the function opens file every time.
  • Starting executable failed

    Unsolved c++
    2
    0 Votes
    2 Posts
    240 Views
    M
    Does SLC.exe exist in that folder? You probably had a build failure; try to build your project again and see if there are any errors from that.
  • QPushButtons not becoming Buttons

    Solved
    3
    0 Votes
    3 Posts
    251 Views
    P
    Ah I see. I was just trying to remove the border lines of the QGroupBox. I didn't realize that affected the buttons as well. Thank you, that solved it.
  • How can I put an tag on the item in a Iconmode Qlistwidget??

    Unsolved
    5
    0 Votes
    5 Posts
    468 Views
    SGaistS
    You can compose a new image. Fill it with black and draw your thumbnail on top of it.
  • QHostInfo::lookup & QHostInfo::HostNotFound

    Unsolved
    3
    0 Votes
    3 Posts
    282 Views
    SGaistS
    Hi, The most usual way to do that is to run the ping command using QProcess.
  • QPushbutton using method?

    Solved
    4
    0 Votes
    4 Posts
    369 Views
    E
    @JonB said in QPushbutton using method?: @Endorfin35 No alternative, you absolutely should put a slot on the button click and set the label text there as you describe, this is the correct paradigm with Qt. This is my answer. Thanks guys.
  • Event queue processed upon calling QWidget::setEnabled()

    Unsolved
    8
    0 Votes
    8 Posts
    823 Views
    F
    @hskoglund 'blockSignals(true)' works, this function does not trigger procession of the event queue. Thank you for this suggestion!
  • Im searching for text editor example with text completion and coloring

    Unsolved
    3
    0 Votes
    3 Posts
    218 Views
    VRoninV
    Another alternative is KTextEditor/KTextWidgets from the KDE API If you want to implement it yourself a good starting point is the Syntax Highlighter Example
  • Missing modules in Qt 6.2.0 : serialport & bluetooth

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    S
    My bad. The Bluetooth and SerialPort modules are now separately downloadable under "Additional Libraries" under Qt 6.2.0 in the Maintenance Tool. Downloaded them and now works. Thanks!
  • QRunnable derived class Exception Triggered

    Solved
    3
    0 Votes
    3 Posts
    272 Views
    SPlattenS
    @jsulm , thank you, I will add setAutoDelete(false) to the constructor.
  • Transferring data...

    Unsolved
    30
    0 Votes
    30 Posts
    6k Views
    O
    Yes, of course it depens on physical conditions that influences to how many resends do it have in normal conditions. In ideal conditions will be faster but if there are resends it could be worst.
  • No eventLoop and direct connection

    Unsolved
    5
    0 Votes
    5 Posts
    543 Views
    D
    @jsulm said in No eventLoop and direct connection: @Drazz Do you really need a thread for that? How much work is this thread actually doing? Yes! It's computing images from 3 RGB cameras. One thread takes images next does the analysis and next writes outputs. I'm not using signals and slots to have control of queues sizes.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • 0 Votes
    7 Posts
    1k Views
    O
    You are a god! I had absolutely no idea what was causing that error.
  • 0 Votes
    2 Posts
    572 Views
    C
    @harlamer Without a minimal compilable example that demonstrates the problem there's not much we can do. We do not know what platform, what font, what texture and texture setup, how the painter has been set up, what "displayed correctly" means, etc.
  • Deploy Qt to Windows on a Linux machine

    Solved
    2
    0 Votes
    2 Posts
    233 Views
    mrjjM
    Hi You need to compile your app ON windows. then you can use windeployqt You cant directly from linux as it don't have the DLLS for windows versions.