Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.5k Posts
  • how to get the wheel event from the qwebenginview widget?

    Unsolved
    9
    0 Votes
    9 Posts
    578 Views
    JonBJ
    @Pl45m4 said in how to get the wheel event from the qwebenginview widget?: Never mind, the filter is installed on focusProxy() QObject... Yes that was what I was drawing attention to for the OP. I don't know but the SO poster was saying mouse events (including wheel) go to focusProxy().
  • qt.permissions: Could not find permission plugin for QLocationPermission.

    Solved
    3
    0 Votes
    3 Posts
    616 Views
    T
    I still cannot make this work. I have even tried to build Qt 6.7.2 from sources to see and the weatherinfo example just exhibits this problem. Any help is very welcome.
  • Hi, how to integrate socket.io libraries to project

    Unsolved
    9
    0 Votes
    9 Posts
    2k Views
    keksi venksiK
    https://github.com/socketio/socket.io-client-cpp/blob/master/INSTALL.md#with-cmake The above link had the detailed info on how to build the socket io for C++ or follow what I have did 1- clone the vcpkg first , because it has all the required modules git clone https://github.com/microsoft/vcpkg.git 2- then run the batch file to make vcpkg to install the required modules .\bootstrap-vcpkg.bat 3- then install the required modules .\vcpkg install boost-asio boost-system boost-random websocketpp openssl 4- then get the code for socketio cpp git clone --recurse-submodules https://github.com/socketio/socket.io-client-cpp.git 5- make the build structures mkdir build cd build 6 then CMAKE it cmake -G "Visual Studio 15 2017" -A x64 -DSIO_TLS=ON . 7 then build it cmake --build . --config Debug
  • Issue with Log4Qt in Cross-Compilation Setup for BeagleBone Black

    Solved
    2
    0 Votes
    2 Posts
    135 Views
    S
    I solved the issue by changing INCLUDEPATH += /include to INCLUDEPATH += /absolute/path/of/include for both INCLUDEPATH and LIBS.
  • License for commercial software

    Solved
    7
    0 Votes
    7 Posts
    441 Views
    M
    Alright, thank you.
  • Qt-Widgets-Application print something to console/terminal

    Unsolved
    4
    0 Votes
    4 Posts
    339 Views
    B
    I guess you are under windows? That's the default behavior for windows gui application. You'll need to add win32:CONFIG += console to the pro file if you are using qmake. But then there will be another problem, if you start the application from console/terminal, it is ok, but when you double click the exe, there will also be a console window which probably you dont want. So why you need std::cout in a gui application in the first place?
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • Move QWidget offscreen on linux?

    Unsolved qwidget x11 window manager
    5
    1 Votes
    5 Posts
    2k Views
    T
    I also encountered this problem, can anyone solve it?
  • Page Layouts

    Unsolved
    3
    0 Votes
    3 Posts
    212 Views
    C
    @JonB Thank you.
  • Cant't post my solution for defining c++ qml interface with qml tools support

    Solved
    4
    0 Votes
    4 Posts
    232 Views
    SGaistS
    Why sorry ? This a good question and can inspire other people to do the same and contribute :-) As for marking the thread as solved, you can do it. Either use the topic tools button (the cog button) or the three dotted menu beside the answer you deem correct.
  • error on: private: friend class QDragManager; Q_DISABLE_COPY(Q@rcg) }

    Solved
    2
    0 Votes
    2 Posts
    162 Views
    gfxxG
    @gfxx I correct into: /* other code */ private: friend class QDragManager; Q_DISABLE_COPY(QDrag) }
  • how to make the widget shadow with the qss style.

    Unsolved
    2
    0 Votes
    2 Posts
    289 Views
    Pl45m4P
    @nicker-player said in how to make the widget shadow with the qss style.: QWidget::shadow There is neither a pseudo-state nor a sub-control with this name... Either it's a custom styled property or your "source" was talking bullsh*t :) QFrame::Shadow does exist for QFrame-based widgets. https://doc.qt.io/qt-6/qframe.html#Shadow-enum Or look into QGraphicsDropShadowEffect (this was probably used in combination with the shadow property to configure it via stylesheet)
  • QT Designer: Push Button Error

    Unsolved
    6
    0 Votes
    6 Posts
    373 Views
    Pl45m4P
    @KevinAR said in QT Designer: Push Button Error: I think I find the cause of this problem when I use a background with a JPG file. It causes the button to become transparent. However, when I don’t use the background, the button still appears. Your assumptions might be wrong here. How do you set the background for your widget/app? Note: if you go QWidget { background-image: "someImage"; } your QPushButton will also inherit the stylesheet... maybe that's why you think it's transparent.
  • Histogram with bezier curve overlay

    Unsolved
    3
    0 Votes
    3 Posts
    245 Views
    PerdrixP
    I've already got the code to calculate bezier curves and gaussian curves, so they can be handled as line charts.
  • Problem on qt 6.3.0 compile

    Unsolved
    3
    0 Votes
    3 Posts
    241 Views
    V
    @Axel-Spoerl how can i do that? and What's wrong if I want to compile all things statically؟
  • I want to reserve space for the taskbar using Xlib.

    Unsolved
    4
    0 Votes
    4 Posts
    299 Views
    SGaistS
    Hi, You might want to check projects such as LXQt that provides a desktop environment built on Qt for inspiration.
  • Rounded corners in Qt Webengine

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

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Looking for help on removing a background and border from a QWidget in a Toolbar

    Unsolved
    10
    0 Votes
    10 Posts
    639 Views
    L
    So, on high-DPI displays, the toolbars get padded a TON, and this doesn't happen on normal res displays, so I had code that iterates over all the buttons and sets them to a fixed size. This apparently breaks the centering on buttons that didn't come from actions. I'm not sure exactly what the difference is, but I've changed my code to do this: static void FixHighDPIButtonSpacing( QToolBar * pBar, int baseSize ) { int horizPad = 2; int vertPad = (pBar->orientation() == Qt::Vertical) ? 0 : 5; const QObjectList & list = pBar->children(); for( QObject * obj : list ) { QToolButton * btn = dynamic_cast<QToolButton *>(obj); if( btn != nullptr ) { if( btn->metaObject() != &MultiActionButton::staticMetaObject ) { btn->setFixedSize( baseSize + horizPad, baseSize + vertPad ); } } } } ... and now it works. It has extra padding above & below compared to the buttons around it, but that's a fight for another day. [image: 1b95cc61-0e42-4f1b-8a6f-e95dc73c9420.png]
  • 0xC000007B error after releasing the application

    Solved
    13
    0 Votes
    13 Posts
    784 Views
    Christian EhrlicherC
    Why did you delete solved topics?