Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 456.8k Posts
  • Clarification on screen geometry and HiDPI

    Unsolved
    2
    0 Votes
    2 Posts
    436 Views
    No one has replied
  • Broke my QWidget resizer somehow

    Solved
    1
    0 Votes
    1 Posts
    121 Views
    No one has replied
  • How to unit test the code inside the paintEvent(QPaintEvent *)

    Solved
    5
    0 Votes
    5 Posts
    305 Views
    J
    Thanks for the reply. I was able to use this approach to solve the problem by storing the image and later compare the image stored.
  • Blur behind Window (on Linux)

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    E
    Hello! I have the same problem, I'm not able to make the window blur the desktop. I've already seen the deepin implementation and I couldn't find where they apply this effect. Do I have to call a function from KWin(In my case), XCB, X11 or the QPainter is enough? I saw some implementations using the following code alongside a way to grab a screenshot of what is behind, but ,at the moment I make it, I can't reapply because the blurred image stays on top (keep blurring the same screenshot). QT_BEGIN_NAMESPACE Q_WIDGETS_EXPORT void qt_blurImage(QPainter *p, QImage &blurImage, qreal radius, bool quality, bool alphaOnly, int transposed = 0); QT_END_NAMESPACE
  • [QLabel] PNG/JPG image not showing when running the program

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    J
    This helped. Did the command like the documentation said so and imported the file and bam! Very nice!
  • QT Non native File Dialog don't preserve selection order only while shift + Up Arrow

    Unsolved
    2
    0 Votes
    2 Posts
    168 Views
    SGaistS
    Hi, I currently don't know. However, one important thing is that Qt 5.3 is more than outdated. You should consider updating to more recent version.
  • Help me plz

    Unsolved
    13
    0 Votes
    13 Posts
    796 Views
    ODБOïO
    @Qwerty123098 hi You can use "Topic tools" button to mark this topic as "Solved", also it would be better if you can use more meaningful titles for your posts
  • Load video (.mp4) and .css in Qt Help Assistant

    Unsolved
    5
    0 Votes
    5 Posts
    936 Views
    V
    @huy-cong I am trying to load my mp4 video into qt assistant, but I just get the message "Your browser does not support HTML video. ". I am using Qt 5.13 and the html I am using to load the video is: <video width="400" controls> <source src="videos/mov_bbb.mp4" type="video/mp4"> <source src="videos/mov_bbb.ogg" type="video/ogg"> Your browser does not support HTML video. </video> Can you tell me how you embedded your video in your .html file? Thanks!
  • Qt5 - CPP - How to resize a QScrollList

    Unsolved
    2
    0 Votes
    2 Posts
    199 Views
    JonBJ
    @Vildnex said in Qt5 - CPP - How to resize a QScrollList: I don't know about the answer you are seeking, but while you are waiting for someone else to answer: auto ratioW = 8; auto ratioH = 3; float thisAspectRatio = (float) event->size().width() / event->size().height(); if (thisAspectRatio < ratioW / ratioH) { That ratioW / ratioH looks like an integer division to me?
  • Qt Lambda reference

    Solved
    7
    0 Votes
    7 Posts
    714 Views
    JonBJ
    @Bonnie If I can chip in, now that OP seems happy. So, you managed to do it even with parameters without having to use std::function(). I thought I read that was needed when I looked at SO posts, but perhaps that was older version of C++. Armed with your answer, I just went back over code and did my lambda-to-be-used-many-times-in-one-function with your auto func1 = [](...) { return ...; }; and it wasn't so hard after all! So thanks very much for example.
  • Exposing my c++ function to a Python script

    Unsolved
    10
    0 Votes
    10 Posts
    864 Views
    gde23G
    cython is also an possibility to wrap c/c++ code in python and its easier to set up than swig.
  • Qt MYSQL plugin not loaded

    Unsolved
    3
    0 Votes
    3 Posts
    307 Views
    G
    That worked!!! Thank you!
  • Compile Qt into Python, for MainWindow, how to add widget from python side dynamically?

    Unsolved
    11
    0 Votes
    11 Posts
    899 Views
    JonBJ
    @student I don't do "EDA" so I wouldn't know. If you state that "ore code should be Qt" etc., then presumably someone has already addressed the interface between TCL & Qt, else there would be a problem.
  • PySide2 QMetaObject.invokeMethod() how to ?

    Unsolved qapplication qmetaobject invokemethod
    8
    0 Votes
    8 Posts
    2k Views
    jsulmJ
    @Dariusz If you check the PySide documentation you will see that there is no overload taking a lambda or any function/method. There are only overloads accepting strings containing method name. So, it seems not possible with PySide. But instead of using QApplication instance you could create your own class with methods you want to call using invokeMethod.
  • This topic is deleted!

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

    Solved
    2
    0 Votes
    2 Posts
    4 Views
  • QPushButton touch screen issue

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    C
    @gde23 touch screen monitor working well. I tracked press/click events via qDebug()<<"test ";
  • cmake in linux ubuntu

    Unsolved
    23
    0 Votes
    23 Posts
    4k Views
    L
    I have no folder /usr/lib/librosco but in /usr/lib there are the three librosco.so ,librosco.so.2 and librosco.so.2.0.0
  • Adding Custom Build Rules for QT under Visual Studio 2017

    Unsolved
    3
    0 Votes
    3 Posts
    247 Views
    J
    I build it by myself
  • PySide2 force killing qapplication

    Unsolved pyside2
    15
    0 Votes
    15 Posts
    2k Views
    D
    @SGaist I'll pull something together. You will need blender 2.83+ however to test it.