Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • aarch64 version

    Unsolved
    2
    0 Votes
    2 Posts
    175 Views
    Christian EhrlicherC
    I'm pretty sure there will be no official version from TQtC for this but you've the code and you can ask the Ubuntu vendors.
  • QSslSocket cannot resolve errors

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    Christian EhrlicherC
    @ocgltd said in QSslSocket cannot resolve errors: Is it possible to add OpenSSL 1.0 alongside OpenSSL 1.1 Try it out. I don't see why you should not be able to install two different library versions.
  • sharpen an image

    Solved
    3
    0 Votes
    3 Posts
    372 Views
    T
    thank you
  • Does the newest Qt for Visual Studio version support Visual Studio 2022?

    Unsolved
    2
    0 Votes
    2 Posts
    226 Views
    raven-worxR
    @hui-zai https://www.qt.io/blog/qt-vs-tools-for-visual-studio-2022
  • 0 Votes
    2 Posts
    677 Views
    BDC_PatrickB
    Anyone? T_T
  • Accessing SQl Database in Qt with Table View

    Unsolved
    3
    0 Votes
    3 Posts
    333 Views
    VRoninV
    @JonB said in Accessing SQl Database in Qt with Table View: However as you can see that is archived as of Qt 5.6, so whatever it is you should be looking at something else. Still alive AFAIK: Qt5 https://doc.qt.io/qt-5/qtsql-cachedtable-example.html Qt 6 https://doc.qt.io/qt-6/qtsql-cachedtable-example.html
  • Import data from excel file to sqlite database using Qt C++

    Unsolved
    5
    0 Votes
    5 Posts
    710 Views
    JonBJ
    @Sini So I don't know what to say other than you'll need to write code to read/parse it and create tables, relationships and rows as required.
  • Non blocking console reading.

    Solved
    20
    0 Votes
    20 Posts
    3k Views
    J
    @JonB Thank you. I have to process all this information. :)
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    9 Views
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Why doesn't QGuiApplication have member function setStyle, but QApplication has?

    Solved
    3
    0 Votes
    3 Posts
    320 Views
    JonBJ
    @jronald QStyle is a part of/requires QWidgets, and QGuiApplication does not do widgets,
  • A console application doesn't support some classes.

    Solved
    18
    0 Votes
    18 Posts
    2k Views
    S
    @jenya7 said in A console application doesn't support some classes.: is it better to set aside Object paradigm and write in old school C style? First to be clear: don't use a C compiler. Even if you are writing procedural code use a C++ compiler. It is much stricter with types which helps you to catch many errors right away. Also, don't give up on the object paradigm. Don't use it where you don't have to. Though, this is a general guideline: C++ is a multiparadigm language and you should use the best tool for the task, i.e. use objects where it makes sense, use generic programming where it makes sense, use procedural programming where it makes sense, etc. For object oriented programming there is the rule (if you are actually after performance): don't use virtual member functions if you don't have to. If you think you really have to use them then you would have to use function pointers in C instead. Using virtual member functions instead the compiler can in some cases inline the call which it will not be able to do with function pointers. Basically, this means object oriented programming without much inheritance. Prefer std::string over plain C strings: they contain the length and thus will be faster in many scenarios. Use std::vector instead of plain arrays. This will avoid errors in so many places. Avoid raw pointers like the plague. Using smart pointers might use slightly more memory (depends on the smart pointer type and an optional deleter), but it is so worth the hassle of remembering to delete everything yourself. Basically, use RAII wherever you can. You'd be surprised how often C++ can be better optimized than a list of hard-coded C instructions. Then profile and if there is a place that needs tuning, you can try if a more C-like approach actually helps. BTW C++ has the zero-overhead principle: You don't pay a performance penalty for the features you don't use. Be careful, though, which features you use, like in the example with virtual functions.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • QVector has no assign method?

    Unsolved
    17
    0 Votes
    17 Posts
    1k Views
    JonBJ
    @JKSH I asked this too at the start, but no response....
  • adjust brightness of led using QSlider and PWM in arduino.

    Solved
    7
    0 Votes
    7 Posts
    795 Views
    D
    i have solved this issue using below solution: i have added the comma( , ) as separator befor the value in this below line arduino>write(QString(",%1").arg(val).toStdString().c_str()); this line is in this function void MainWindow::on_pluse_slider_valueChanged(int value)
  • How to display QPushButtons in the line edit of QComboBox

    Unsolved
    1
    0 Votes
    1 Posts
    131 Views
    No one has replied
  • QSqlQueryModel with escaped characters in database

    Solved setquery qsqlquerymodel
    4
    0 Votes
    4 Posts
    648 Views
    R
    @Christian-Ehrlicher Yep. QIdentityProxyModel works fine. Thanks.
  • QGoogleSignInButton

    1
    0 Votes
    1 Posts
    157 Views
    No one has replied
  • Security implications of loading user style file

    Solved
    6
    1 Votes
    6 Posts
    411 Views
    D
    @JoeCFD Thanks for the input. I'll have to consider how I can limit that. I really want to avoid creating a whole UI for the user to modify the control looks. I did that before and no one ever used it. I want to offer the option to customize without any real effort on my part because very few people are going to actually use it.
  • how get quick grabing of Qimage from QCameraimagecapture capture()

    Unsolved
    12
    0 Votes
    12 Posts
    998 Views
    SGaistS
    I meant the business logic from the camera to the screen.