Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • PCAN API display Failed to initialize PCAN device.please help me.

    Moved Unsolved
    6
    0 Votes
    6 Posts
    702 Views
    J
    @JonB ok thanks
  • changing QScrollBar arrows size with stylesheets

    Unsolved
    2
    0 Votes
    2 Posts
    523 Views
    SGaistS
    Hi, Partly depending on the OS you use you may have to style more elements to achieve your goal. See the example in the documentation. That said, you might also want to consider creating a proxy style.
  • How to change the font used in QTextEdit's markdown mode?

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

    Unsolved
    9
    0 Votes
    9 Posts
    108 Views
  • Shiboken2 python11 for Qt 5.15.11

    Unsolved
    2
    0 Votes
    2 Posts
    210 Views
    SGaistS
    Hi, I think there was a glitch since 5.15.11 got unlocked a couple of weeks ago. You should check the bug report system to see if there's something related.
  • Problem with QUrl

    Unsolved
    2
    0 Votes
    2 Posts
    283 Views
    Christian EhrlicherC
    @changesUnderWay said in Problem with QUrl: url.setUrl("abc.com"); This is not an url but a host.
  • QWindow and QMenuBar

    Unsolved
    14
    0 Votes
    14 Posts
    850 Views
    M
    @SPlatten There is an option in QMenuBar that forces the menubar to be displayed in the window on Mac and some linux distros: void setNativeMenuBar(bool nativeMenuBar)
  • QDialog as a QMdiSubWindow: Weird behavior when minimizing

    Unsolved qmdiarea qmdisubwindow qdialog
    2
    0 Votes
    2 Posts
    487 Views
    JonBJ
    @Alvein I don't know the answer to your question. But it always surprises me why anyone would use a QDialog as anything other than what it is intended for, such as an MDI subwindow: A dialog window is a top-level window mostly used for short-term tasks and brief communications with the user.
  • Do QJsonDocument::fromJson() changes object position while parsing?

    Unsolved
    3
    0 Votes
    3 Posts
    349 Views
    Christian EhrlicherC
    @Learner1985 said in Do QJsonDocument::fromJson() changes object position while parsing?: Here, position of "Height" object is changed from 4th to 2nd. I don't want to change the position of objects because in my original file. If position of the object changes then application will not be able to read/parse data properly. Then your app is doing something wrong. There is no defined order for json object values.
  • QScrollArea repeats background image

    Unsolved
    12
    0 Votes
    12 Posts
    1k Views
    B
    @cr00se said in QScrollArea repeats background image: Should this code look like this No, it should not, if there's no selector, then all the child widgets of QScrollArea (including the dummy widget) will be affected, so again the dummy widget will also have background image which will scroll with it. If the background image is not shown, that's the problem I said: the background of child widget (probably the dummy widget) is covering the image. When I write test code, at first I coundn't make the background image show. But later I found that's because while calling QScrollArea::setWidget() The widget's autoFillBackground property will be set to true. That's why I said "widget->setAutoFillBackground(false)" must be called after "scroll_area->setWidget(widget)". Then in my test code it works just fine to show the background image of QScrollArea and not scroll. So if yours is not shown, go check what is covering it. You must have something not transparent on it. For example, you should not set any background color for dummy widget.
  • 0 Votes
    15 Posts
    1k Views
    JoeCFDJ
    @MStackoverflo you may check if you have installed all wayland-related gstreamer packages. for example: gstreamer-gl-wayland-1.0. and test some pipelines from command line. For example: gst-launch-1.0 -v videotestsrc ! waylandsink
  • Obtaining frame timestamps from QMediaRecorder()

    Unsolved
    1
    0 Votes
    1 Posts
    124 Views
    No one has replied
  • Bluetooth pairing fails

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    TalklessT
    Fix will be available in Qt 6.7.
  • jstring -> type name / unexpected expression

    Solved
    5
    0 Votes
    5 Posts
    524 Views
    Flaming MoeF
    @ChrisW67 Even after your former post I haven´t noticed the wrong paranthesis after my ".object" until yesterday evening after staring at goats for a loooong time
  • Sends the image as HTML and draws it on the canvas.

    Unsolved
    6
    0 Votes
    6 Posts
    397 Views
    JonBJ
    @MyNameIsQt I really don't know why this. It's not as though it cannot find the function drawCanvas() function definition (e.g. not loaded yet), as you get into that and the error message indicates it cannot see the text parameter. I am not a regular JS dev, but I did do QWebEnginePage::runJavaScript() in the past under Ubuntu and I remember it working fine. I have no idea whether the following could be in any way related. I still do not understand how you have a QWebEngineView as a local variable, waiting to go out of scope. And normally you don't call anything (e.g. runJavaScript()) to do anything until you know the page has finished loading. There is a void QWebEnginePage::loadFinished(bool ok) signal and/or window or document onload() in JS. You might try whether it's any different in any of these (presumably after changing the scope/lifetime of your QWebEngineView view; object).
  • Getting a CWnd to use as a parent

    Solved
    2
    0 Votes
    2 Posts
    302 Views
    PerdrixP
    I have resolved this problem. I moved all bar the first two lines of the code in question from the ctor of the QMainWindow to the showEvent() handler. The HWND for the stacked widget was valid at that point whereas it wasn't in the ctor. I also added a line to the dtor which read: hostWnd.Detach(); I hope someone finds this helpful. David
  • How to subclass a QWebEngineView?

    Unsolved
    6
    0 Votes
    6 Posts
    479 Views
    B
    @Kattia You don't need to modify the source. Just use QWidget as base class in the designer and add a QWidget then promote it. It will work although it doesn't look like a QWebEngineView when designing. You will not be able to set the QWebEngineView only properties in the designer, but there're just two of them and can be set in the code. So not a problem.
  • How to make the exe file by Static build to include 3rd party dll

    Solved
    4
    0 Votes
    4 Posts
    276 Views
    Christian EhrlicherC
    @Kingofheart said in How to make the exe file by Static build to include 3rd party dll: . Is there no other way for QT to merge the DLL files? I don't see what Qt has to do with it. You can not simply convert a shared into a static lib except recompiling.
  • Can't run Quick examples folder

    Solved
    4
    0 Votes
    4 Posts
    288 Views
    S
    Some examples use Vulkan. It is a separate library. So, for these examples to work you need to actually install the Vulkan developer libraries.
  • Sample arm motor

    Solved
    2
    0 Votes
    2 Posts
    155 Views
    C
    @Rockerz "Increment & decrement operation not work" is not a useful description of the problem. The code did not compile or link? The command did not get sent? The command did not get acted on? The command caused unexpected behaviour? How does "increment or decrement" relate to the characters you are trying to send? We can only guess. See QByteArray::operator[](), note the condition on the index value. Look at QByteArray::resize(); how many bytes are in the array? What is actually in the array you write? Look at the manual for the device on the other end of the serial connection. Is it expecting command to be terminated with a carriage return and/or line feed?