Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • Weather API in qml

    Unsolved
    2
    0 Votes
    2 Posts
    221 Views
    jsulmJ
    @Ashish_Pathak said in Weather API in qml: I did check out for weather api's online So, what did you find?
  • Is it legal to modify QT 4.8.7 and build wkhtmltopdf using this modified QT 4.8.7

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    Christian EhrlicherC
    @Babitha They link to their Qt repository - so use it if you want the Qt version used for wkhtmltopdf - as you can see it's a Qt4 repo with some patches from them.
  • Multiple QObject::connect with Qt::UniqueConnection not work

    Solved
    15
    0 Votes
    15 Posts
    7k Views
    D
    This is example how to use Qt::UniqueConnection
  • Question about show() hide()

    Solved
    17
    0 Votes
    17 Posts
    2k Views
    Q
    @SimonSchroeder The reason I use show ()/hide() for pics is that in my actual project, each picture has a different display duration. For example, if there are three pictures in total, initially they are all displayed. After 1 second, the first picture is hidden. After 2 seconds, the second picture is hidden. After 3 seconds, the third picture is hidden, and then it switches to the next set of pictures.
  • QMenu / submenu issues...how to add QAction?

    Unsolved
    3
    0 Votes
    3 Posts
    715 Views
    A
    @Pl45m4 I just fished the task adding menu and submenu. I could post the code , but it is still "under construction". My main misunderstanding was the relation between menu and action.
  • How to stream video from camera using QT6 and GStreamer?

    Unsolved
    2
    0 Votes
    2 Posts
    374 Views
    malikcisM
    Hi @ks-zealot, I could solve this in QT6 using QVideoSink, however, CPU usage is quite high. My main issue being that I need to memcpy a custom buffer to QVideoframe. I am willing to help/exchange on this though. Could you make progress on your end yet?
  • QTableView: How to determine, if scrollbar shows up?

    Solved
    7
    0 Votes
    7 Posts
    651 Views
    A
    @SGaist: After another look at my code, i found the error: The width of the QTableViews rectangle was too big. Thanks for your help, anyway. Kind regards, Andreas
  • 0 Votes
    2 Posts
    594 Views
    bibasmallB
    As I understand it, the child should receive the event before the parent, but in my case, the child is deaf. I thought maybe the problem was the size of the child, so I set it equal to the parent size, but it didn't help. I can call mousePressEvent(e) directly for the child in the parent's overload, but it looks like a very bad design. UPD: currentPrimitive_->setKeepMouseGrab(true); allows to pass the event to the child without ugly direct call of mousePressEvent(e) .
  • QTcpSocket always connectingState

    15
    0 Votes
    15 Posts
    3k Views
    S
    @jsulm said in QTcpSocket always connectingState: If you really want to do that then you have to make sure the QTcpSocket instance is created in another thread (when CenterManageSystem::main is called). Sure, the instance will be created in &CenterManageSystem::main. Because this socket will process much data so I move it to another thread then the data can be sent by signal to update UI.
  • Q_CLASSINFO with repc

    Unsolved
    1
    0 Votes
    1 Posts
    161 Views
    No one has replied
  • QT Designer Form Layout is Stretched at Runtime in Windows 10

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    jsulmJ
    @Brian_H Add https://doc.qt.io/qt-6/qboxlayout.html#addStretch to your vertical layout at the bottom
  • QNetworkInformation::isBehindCaptivePortal() incorrectly returns false on MacOS

    Solved
    2
    0 Votes
    2 Posts
    213 Views
    Axel SpoerlA
    Good morning, The documentation isn't clear about which platforms are supported wrt captive portal detection. It's supported for Android, Glib, Networkmanager (DBus) and Networklistmanager (on Windows, if QT_FEATURE_networklistmanager is enabled). Detection support for Apple platforms hasn't been implemented (yet). That's why it returns falsealways. Cheers Axel
  • Permissions denied for pyuic6

    Solved
    3
    0 Votes
    3 Posts
    449 Views
    D
    Thanks @ChrisW67 Stupid mistake.
  • Problem with stretching QGridLayout

    Unsolved
    2
    0 Votes
    2 Posts
    580 Views
    Pl45m4P
    @Wugge said in Problem with stretching QGridLayout: It should only take up as much space as it needs for the buttons and title to fit. If I scale the window and the buttons don't fit in the row anymore, they should go to the next row and the area should stretch with it. like this? https://doc.qt.io/qt-6/qtwidgets-layouts-flowlayout-example.html
  • How to add "checkable" to QMenu - using C++ code ?

    Solved
    3
    0 Votes
    3 Posts
    461 Views
    A
    @Pl45m4 Thanks, it is so stupidly simple... I do not get why the examples are so complicated... Oh well - one problem solved Many thanks.
  • Add css on widget inside an other one

    Solved
    9
    0 Votes
    9 Posts
    630 Views
    Pl45m4P
    @marius-thorre Please mark the topic as "solved" if you dont have further questions and your issue got resolved.
  • setStyleSheet for QToolBar::separator?

    Solved
    2
    0 Votes
    2 Posts
    701 Views
    Pl45m4P
    @Joachim-W said in setStyleSheet for QToolBar::separator?: Anything wrong here? Yes, the separator stylesheet. ::separator is a sub-control of QToolBar and therefore can't put next to the general properties of QToolBar, like border-left. It needs its own container. setStylesheet("QToolBar {border-left:1px solid rgb(180,180,180);} ::separator{background:yellow; height:80px; };");
  • Dear ImGui

    Unsolved
    6
    0 Votes
    6 Posts
    6k Views
    Pl45m4P
    @qcoderpro Btw: Dear ImGui is even used in Qt (some 3D modules) as 3rd party lib. https://doc.qt.io/qt-6/qt3d-index.html#licenses-and-attributions
  • Raspberry Pi 4 cross compile trouble

    Solved
    4
    0 Votes
    4 Posts
    1k Views
    I
    Re: Raspberry Pi 4 cross compile trouble The problem solved in another way - seems that we now have to use CMake instead of QMake for qt based crossplatform solutions for arm. So I just made CMakeLists.txt - configured my project again and everything get working. Of course that was painful for a bit (never used cmake before) but you always need to go further and to learn instantly.
  • Correctly create QDir from QFileInfo

    Solved
    12
    0 Votes
    12 Posts
    2k Views
    A
    @kkoehne Thanks a lot!