Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • Making a list of widgets should be simple, yet it is dauntingly complex.

    Unsolved
    2
    0 Votes
    2 Posts
    479 Views
    Pl45m4P
    @Paddle said in Making a list of widgets should be simple, yet it is dauntingly complex.: Paint manually the thumbnail, text (those 2 are not too hard) but the combobox? Do I need to draw a rectangle the text and the arrow myself? The button? No, there is this, which provides everything to style/paint a comboBox. https://doc.qt.io/qt-6/qstyleoptioncombobox.html Make a widget class for my items anyway because it's needed for the createEditor for when the user click the item such that the thing can actually be modified and not just painted? The delegate only uses the real widgets, when you "activate" it (in editing mode), otherwise it's just "flat", so it doesn't need too much resources. Here's another delegate example: https://doc.qt.io/qt-6/qtwidgets-itemviews-stardelegate-example.html
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    29 Views
    No one has replied
  • Handle WM_USER message in QT

    Unsolved
    6
    0 Votes
    6 Posts
    756 Views
    K
    @Christian-Ehrlicher Thank you, I could able to receive WM_USER message in native event filter with the help of MFC class.
  • Bluetooth error con iOS

    Unsolved
    4
    0 Votes
    4 Posts
    394 Views
    J.HilkJ
    @vcasado IIRC, you need, besides the NSBluetoothAlwaysUsageDescription also the NSBluetoothPeripheralUsageDescription or I at least have both in my plist files
  • When I compile the project, the computer automatically shuts down...

    4
    0 Votes
    4 Posts
    414 Views
    H
    @Chris-Kawa Thanks~ I will check it. :)
  • Cannot play music or video byQtMultimedia

    Unsolved
    1
    0 Votes
    1 Posts
    123 Views
    No one has replied
  • "Protocol HTTPS Unknown QT 5.14.2 Static.

    Unsolved
    4
    0 Votes
    4 Posts
    458 Views
    SGaistS
    Ensure that it has been built with MinGW. Recent versions of the Qt online installer allows you to download a suitable version of OpenSSL.
  • This topic is deleted!

    Solved
    7
    0 Votes
    7 Posts
    80 Views
  • Device Discovery aborted ...

    Unsolved
    3
    0 Votes
    3 Posts
    299 Views
    A
    @Pl45m4 The "remote device scan" gets started and I read SIGNAL "device detected". The "remote device scan" scans for multiple devices , hence "device detected" gets posted until "scan finished" is posted. I currently have ONLY one Bluetooth adapter and that is the one used to perform "remote device scan". This "sequence" is managed by the initial "start scan ".
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Linker errors when HDF5 is being used

    Unsolved
    13
    0 Votes
    13 Posts
    968 Views
    R
    @JonB Hi Jon , Thanks. Right , added \ and its working. Creating the hdf file now. Thanks & warm regards, ~ Rudresh
  • 0 Votes
    5 Posts
    1k Views
    bibasmallB
    @Christian-Ehrlicher Thank you, it helped! In fact, these two commits contained what I needed: Fix dragging a docked QDockWidget [REG-fix] 430985: Refix QDockwidget drag out dockwidget
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Do an operation when computer goes to sleep

    Solved signal
    11
    0 Votes
    11 Posts
    5k Views
    Pl45m4P
    @LusuQT said in Do an operation when computer goes to sleep: But when I put my laptop to sleep it does not capture the PBT_APMSUSPEND event. Make sure that your laptop's power management is configured the same way as the Desktop PC's. Check, if your laptop doesn't go into hibernate instead of suspend, when "going to sleep" (either by keyboard shortcut or from menu). I'm not sure if hibernate also triggers the SUSPEND event. The current power settings can also vary when using different powerplans (I think it's called like that?!). (Just a guess that this might be the difference)
  • OS state (sleep or awake) in c++ Qt5.15.8

    Unsolved
    3
    0 Votes
    3 Posts
    398 Views
    Pl45m4P
    @Anila If you are on Windows and need this for Windows only, have a look here: https://forum.qt.io/topic/69485/do-an-operation-when-computer-goes-to-sleep As @SGaist said, there is no platform independent "Qt way". You have to do this for every OS separately, if you are planning to go multi-platform
  • Progress bar with text

    Solved
    6
    0 Votes
    6 Posts
    3k Views
    Pl45m4P
    @Perdrix Parent-Child mechanism :) You can put any widget on top of any other widget (in its coordinate system) by setting the bottom widget as parent of the toplevel one. In this case @Chris-Kawa used a layout
  • Widgets don't receive hover event in windows style

    Unsolved
    2
    0 Votes
    2 Posts
    233 Views
    Christian EhrlicherC
    QMenuBar::paintEvent() does not set the MouseOver state: https://code.qt.io/cgit/qt/qtbase.git/tree/src/widgets/widgets/qmenubar.cpp#n882 and https://code.qt.io/cgit/qt/qtbase.git/tree/src/widgets/widgets/qmenubar.cpp#n882 Looks like you have to derive from QMenuBar, override initStyleOption() and set it by your yourself.
  • Label text obscured in QFrame in QMainWindow (QT5)

    Unsolved
    26
    0 Votes
    26 Posts
    5k Views
    C
    @JoeCFD All screens displayed are on the same display and all have the same resolution of 800x480
  • QMessagebox: lack of RejectRole makes close (X) button disabled

    Unsolved
    3
    0 Votes
    3 Posts
    219 Views
    S
    @Dummie1138 said in QMessagebox: lack of RejectRole makes close (X) button disabled: An example elsewhere in the code where the apparent lack of RejectRole does not disable the close button. Well, there is a difference between QDialog and QMessageBox. Choose the right one for your task instead of trying to trick the wrong one into doing things it is not meant to do.