Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • 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
    470 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
    392 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
    291 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
    338 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
    473 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
    206 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
    299 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
    289 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
    305 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
    868 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
    756 Views
    A
    @JonB GridLayout worked perfectly , thanks :)
  • 64-bit Qt Assistant does not recognize external css

    Solved
    10
    0 Votes
    10 Posts
    862 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
    949 Views
    J
    @JonB No. You are right. Thank you.
  • Build qt6.5.3 from source fails due to protobuf

    Solved v6.5.3 build error protobuf build from sour
    15
    0 Votes
    15 Posts
    3k Views
    semlanikS
    Addressed here: https://codereview.qt-project.org/c/qt/qtgrpc/+/488623 backported to 6.5 lts.
  • QT android pdf

    Unsolved
    2
    0 Votes
    2 Posts
    197 Views
    jsulmJ
    @CHEN_CH https://doc.qt.io/qt-6/qtpdf-index.html
  • Render PDF Page with QtPDF with its text

    Unsolved
    5
    0 Votes
    5 Posts
    697 Views
    C
    @JonB Yes that was my conclusion too, but finding such a lib has proven to be quite difficult. Building Poppler isnt exactly easy and there arent many alternatives to that aside from Hummus.