Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • Download error

    Solved
    5
    0 Votes
    5 Posts
    509 Views
    K
    @ChrisW67 eventually realised the T in maintenance tool was capitalized in the directory, but not where the steps were shown, in the linked site, thank you
  • Multithreaded qwebsocket - competing server

    7
    0 Votes
    7 Posts
    7k Views
    J
    @Josueh_Rodrigues A única quetão a ser resolvida é que está emitindo replicado para o próprio cliente em si. E isso está acontecendo porque o Sender está chegando com o valor igual a nulo. Se alguém sabe a solução para este fato, já vai ficar bem melhor o código de exemplo.
  • 0 Votes
    2 Posts
    715 Views
    Pl45m4P
    @StudentScripter Have you checked the QGraphicsLayout example already? https://doc.qt.io/qt-6/qtwidgets-graphicsview-basicgraphicslayouts-example.html
  • error: undefined reference to `mysql_init'

    Solved
    30
    0 Votes
    30 Posts
    4k Views
    M
    @Christian-Ehrlicher said in error: undefined reference to `mysql_init': @micha_eleric said in error: undefined reference to `mysql_init': arguing high level vs. low level just encourages me to learn assembly, although i would more likely use C. So why do you use Qt then? one little piece of qt
  • QSystemTrayIcon and Multiple Notifications

    Unsolved
    5
    0 Votes
    5 Posts
    480 Views
    Christian EhrlicherC
    @daniilo said in QSystemTrayIcon and Multiple Notifications: I thought there was a way I did not find a hint on how to do so in the MSDN documentation and also a quick google search did not reveal something about it.
  • 0 Votes
    11 Posts
    2k Views
    JonBJ
    @Axel-Spoerl said in QtCreator debugger: display enum texts when used as array indexes, instead of 0,1,2...: Re-translating that back into an enum, goes a long way. I doubt it will be implemented. Which is all I said :)
  • How do I render bar charts by DateTime?

    Solved
    2
    0 Votes
    2 Posts
    403 Views
    Pl45m4P
    @sun_caramel said in How do I render bar charts by DateTime?: How can I set the x-axis of a QBarSeries to QDateTimeAxis? The documentation says: QDateTimeAxis can be used with any QXYSeries. To add a data point to the series, QDateTime::toMSecsSinceEpoch() is used Since QBarSeries is not a QXYSeries it wont work just like this
  • Qt6 QDomDocument setContent with String input error

    Solved
    3
    0 Votes
    3 Posts
    303 Views
    B
    @Christian-Ehrlicher I realized that there is no space between attributes inside a tag. It is interesting that old qt version does not complain about it. Thanks for the advice
  • Can't select with mouse any Qt Inner Terminal output

    Solved
    5
    0 Votes
    5 Posts
    355 Views
    J
    Changed selection color and it makes selection visible
  • Qt Creator inner terminal autoinputs 0 when there is cin stream

    Solved
    5
    0 Votes
    5 Posts
    487 Views
    JonBJ
    @jsulm I think then that careful reading of that item must mean you are only supposed to use it if you know there is something already sitting there left over from before and you want to flush it. It must mean ignore everything up to the next newline in the buffer, whenever that is. The OP should certainly try removing it. I don't know what the OP's "autoinputs 0" means, nor why it apparently has different effect in same situation from gnome-terminal.
  • 0 Votes
    2 Posts
    214 Views
    SGaistS
    Hi and welcome to devnet, Please use a meaningful thread title when posting. You answered to an 8 year old thread so I would recommend that you edit your thread and add the code that triggers the issue you have as well as the error itself.
  • Serial port: timestamping received bytes for splitting modbus communication

    Unsolved
    3
    0 Votes
    3 Posts
    307 Views
    C
    @ChrisW67 Thank you. I can use a logic analyzer to receive the serial waveform, and then either call sigrok to decode it for me, or do that myself in the Qt program. Then I know I have all the timing information I need, and i can store the raw samples of the serial connection if either the serial, or the modbus decoder reports a problem. https://hackaday.com/2022/03/02/need-a-logic-analyzer-use-your-pico/
  • How to improve my qml app performance? ( QQuickPaintedItem )

    Unsolved
    2
    0 Votes
    2 Posts
    295 Views
    sierdzioS
    @TomNow99 There are a few solutions which you can use, or combine them for biggest effect: keep your heavy page in a separate loader and only hide it (visible = false) when user navigates away from it. This is probably the easiest solution to do in your painted item, cache the results: render your item into a QImage (or something else) and keep that image stored somewhere. Then when user navigates back to heavy page, show the image instead of rendering the whole item from scratch
  • Check if cursor is near a widget's edges

    Solved
    3
    0 Votes
    3 Posts
    319 Views
    S
    @ChrisW67 I figured this out on my own, but that's essentially what I came up with, additionally creating flags for the resize direction. Thanks!
  • Translation and QStringList

    Unsolved
    9
    0 Votes
    9 Posts
    887 Views
    SGaistS
    Hi, Where and when exactly are you setting up your translator ?
  • How to align widgets with different types in a QHBoxLayout ?

    Solved
    6
    0 Votes
    6 Posts
    771 Views
    A
    @JonB GridLayout worked perfectly , thanks :)
  • 64-bit Qt Assistant does not recognize external css

    Solved
    10
    0 Votes
    10 Posts
    890 Views
    J
    @ChrisW67 Tried this out for myself. This was the problem all along it seems. Looks like Qt either made Assistant more strict with HTML standards in newer versions or this was a bug introduced somewhere, because "StyleSheet" worked just fine before. Thank you for all of the help!
  • "SSL connection error: unknown error number QMYSQL: Unable to connect"

    Solved
    22
    0 Votes
    22 Posts
    7k Views
    D
    Update: The mistake was totally mine. I was using Qt version 6.5.1. I updated to 6.6.1 and everything worked out. Thanks everyone for helping!
  • 0 Votes
    10 Posts
    3k Views
    D
    @JonB , @ChrisW67 , @PI45m4, Many thanks for your help. It worked. I used the screenshot below from @ChrisW67 and applied it to each container widget starting with central widget and now it resizes perfectly. There is a bug in Qt Creator - I had to apply this numerous times until it actually set the layout to the container. But it worked. Many thanks once again! [image: 3c891a08-f722-47ac-a1e5-c4731632214a.png]
  • Qt Creator with ecpg

    Solved
    12
    0 Votes
    12 Posts
    959 Views
    J
    @JonB No. You are right. Thank you.