Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Please, there has to be some way to set the Qtvk size without resorting to qml.

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    SGaistS
    Hi and welcome to devnet, Thanks for the detailed analysis and solution even if not ideal. I suggest that you check the bug report system to see if there's something related. If not you should open an issue there. As for people not answering, this is a voluntary driven forum. Usually if there's no answer to a question it's mainly because nobody hit the same problem as you or you are using a module that is less used.
  • problems on using the if and else statement and updating the data.

    Moved Unsolved c++ qt update if and else
    18
    0 Votes
    18 Posts
    4k Views
    1
    How did you do it now?
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    15 Views
  • Is stroke the text (Circle text )

    Solved qt5.11 qpainter
    4
    0 Votes
    4 Posts
    1k Views
    M
    @timob256 said in Is stroke the text (Circle text ): cannot align the bypass line with the inner line Sorry, i don't understand. If you want the background to be green, add a fillPath before stroke path: painter.fillPath(path,Qt::green); painter.strokePath(path,pen);
  • How to make LinguistTools work in CMakeLists.txt?

    Solved
    2
    0 Votes
    2 Posts
    514 Views
    Christian EhrlicherC
    See e.g. here: https://forum.qt.io/topic/114773
  • How to include pico-sdk in Qt

    Solved
    6
    0 Votes
    6 Posts
    3k Views
    Pablo J. RoginaP
    @jenya7 said in How to include pico-sdk in Qt: It looks like you're still missing the concept of Qt supported platforms, and processor architectures (x86, x86_64, x86, armv7, armv8, etc.) But today with Qt I operate WIFI and BLE modules on Raspberry Pi. It also operates GPIO (hardware pins) with a third party lib Yes, because the Qt framework (most of its modules) were ported to platform (Linux) and architecture (armv7, armv8) Please be aware that you're talking about Raspberry Pi devices here. So I wouldn't be surprised if it works with Pico SDK headers and libraries. Once again, the Pico SDK is intended for writing applications to run on RP2040 microcontrollers, please read the documentation. And be surprised, there's no Qt framework port for such architecture yet.
  • This topic is deleted!

    Unsolved
    3
    0 Votes
    3 Posts
    23 Views
  • Qlabel hyperlink not working

    Unsolved
    4
    0 Votes
    4 Posts
    888 Views
    JonBJ
    @LT-K101 Put in a print() to make 100% sure the linkActivated.connect(self.linkClicked) statement is actually executed. Make sure you are clicking label_5. You could try the linkHovered signal to see if you get that (note that per a bug report this is only emitted a single time for any given link, but that should be enough to verify). Ah, stop! The Qt docs don't make this clear at all, but it looks like whether it is emitted or not depends on what you put in the QLabel. You have to make it be an HTML link. See e.g. https://www.qtcentre.org/threads/20568-linkActivated-signal-in-QLabel linkActivated is emitted if you click a HTML link (a). And since you set the text 'label' the signal newer will get emitted.
  • The geoservices provider is not supported, linuxdeployqt

    Unsolved
    8
    0 Votes
    8 Posts
    3k Views
    W
    More correct way to do it is add in plugin geoservices entry : ./linuxdeploy-x86_64.AppImage --appdir AppDir --plugin qt,geoservices --output appimage
  • Scanning BLE beacons

    Solved
    42
    0 Votes
    42 Posts
    15k Views
    J
    Thank you guys.
  • number of event filter calls

    Unsolved
    4
    0 Votes
    4 Posts
    337 Views
    jsulmJ
    @IknowQT In this thread https://forum.qt.io/topic/132824/how-to-use-mouse-events-and-signals-together I gave you a link which explains how to implement event handlers. Did you read it?
  • How to get informations in QStyledItemDelegate?

    Solved
    4
    0 Votes
    4 Posts
    200 Views
    Christian EhrlicherC
    I don't know why such stuff should be needed but you will need additional information from e.g. QCalenderWidget::currentPageChanged() to retrieve the month and year. Then you know the date and can draw something different for the specific days.
  • Help with QQmlPropertyMap ?

    Unsolved
    1
    0 Votes
    1 Posts
    130 Views
    No one has replied
  • How to customize movable header shadow

    Unsolved
    5
    0 Votes
    5 Posts
    325 Views
    Christian EhrlicherC
    You're right - I took the wrong place. The pixmap is created via QHeaderView::paintSection() (via QHeaderViewPrivate::setupSectionIndicator() and QHeaderView::mousePressEvent()) which is virtual so you should be able to override it.
  • The program crashes after using the plug-in!!!!

    Unsolved
    4
    0 Votes
    4 Posts
    267 Views
    Christian EhrlicherC
    @Hedge_tp Please use a debugger and see where exactly it crashes as @mrdebug already told you.
  • Qt Bluetooth - no devices discovered.

    Solved
    35
    0 Votes
    35 Posts
    10k Views
    jsulmJ
    @jenya7 said in Qt Bluetooth - no devices discovered.: I get a run time exception Then run through debugger to see where and why exactly it is crashing... I guess it is crashing inside ScanFinished() slot. Connecting a signal to another signal is perfectly valid.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • Qt 6.2.2 experimental/filesystem => filesystem

    Solved
    11
    0 Votes
    11 Posts
    3k Views
    AxelViennaA
    Ah, the cloning did the trick. Was unaware of this, thanks for the hint. While I use qmake from the Qt 6.2.2 tree, I still have to add QMAKE_CXX=g++-9 as an additional argument to the qmake build step. Then it works :-)
  • Numberpad does not recognize NumLock state

    Unsolved numlock numberpad
    2
    0 Votes
    2 Posts
    339 Views
    M
    @Jay-Kemper I see it has been a while since you posted this, but currently we are noticing this same problem as well. It only seems to happen on Linux (CentOS). We are still using Qt 5.12.7. Did you manage to find a solution?
  • How to remove textarea from checkbox

    Unsolved
    1
    0 Votes
    1 Posts
    177 Views
    No one has replied