Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • 0 Votes
    7 Posts
    2k Views
    Q
    @J-Hilk The result is same as QtConcurrent::run(). when i connect preload with QueuedConnection in main thread, then emit preload() in new thread. log shows me slot run in the new thread. [thread 28644][scenes_widget.cpp:224][Play][debug] : here is main thread [thread 33724][scenes_widget.cpp:345][ManagerRegions][info] : manager start [thread 33724][program_widget.cpp:160][_PreLoad][info] : preload next
  • Weather API in qml

    Unsolved
    2
    0 Votes
    2 Posts
    196 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
    928 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
    6k Views
    D
    This is example how to use Qt::UniqueConnection
  • Question about show() hide()

    Solved
    17
    0 Votes
    17 Posts
    1k 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
    625 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
    308 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
    551 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
    510 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
    2k 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
    146 Views
    No one has replied
  • QT Designer Form Layout is Stretched at Runtime in Windows 10

    Unsolved
    4
    0 Votes
    4 Posts
    888 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
    186 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
    404 Views
    D
    Thanks @ChrisW67 Stupid mistake.
  • Problem with stretching QGridLayout

    Unsolved
    2
    0 Votes
    2 Posts
    450 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
    401 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
    557 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
    607 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
    5k 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
    976 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.