Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • This topic is deleted!

    Unsolved
    11
    0 Votes
    11 Posts
    93 Views
  • /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.15' not found

    Solved
    7
    0 Votes
    7 Posts
    27k Views
    jsulmJ
    @m4t1 Did you try export LD_LIBRARY_PATH=HERE_PATH_TO_QT_LIBS_DIR && ./my_app ?
  • Code running in 5.12, but not in 5.15 or higher

    Solved
    5
    0 Votes
    5 Posts
    398 Views
    T
    It is solved - I had to find some updates for external libraries and the problem was gone.
  • Why is it wrong to write this in a header file?

    Solved
    15
    0 Votes
    15 Posts
    1k Views
    J.HilkJ
    @SGaist mmh 🤔 right, May be a better approach, than what I currently have. I'll have to test it. Thanks!
  • QTableWidget cellwidget set invisible become visible after column resize

    Solved
    10
    0 Votes
    10 Posts
    1k Views
    Christian EhrlicherC
    Dupe of https://bugreports.qt.io/browse/QTBUG-13522 - don't use widgets in itemviews. We really should have deprecate this widget inside item views stuff in Qt6...
  • 32-bit and 64-bit

    Solved
    2
    0 Votes
    2 Posts
    224 Views
    nageshN
    @canid as per qt doc.. On Windows, for 32-bit programs running in WOW64 mode, settings are stored in the following registry path: HKEY_LOCAL_MACHINE\Software\WOW6432node I feel 32 bit & 64 bit application registry locations are different..
  • Running qt on external computer

    Unsolved
    2
    0 Votes
    2 Posts
    162 Views
    JKSHJ
    @georgiav said in Running qt on external computer: Can I run my program on an external computer that doesn't have qt? Yes you can. Just deploy your application: https://doc.qt.io/qt-5/deployment.html for the open source version of qt, the application built can be run only within Qt , right? Nope, for 2 different reasons: The whole purpose of free and open-source software is to guarantee freedoms to users. So, you have the freedom to run the application anywhere you want. You're thinking about running the application within Qt Creator, the IDE (Integrated Development Environment). Qt is a library. Qt is not Qt Creator.
  • Qt is absolutely amazing

    Locked Unsolved qt 5.4
    1
    0 Votes
    1 Posts
    303 Views
    No one has replied
  • Remove Row in subclassed QSQLTableModel not updating database

    Solved
    10
    0 Votes
    10 Posts
    848 Views
    N
    Thanks @SGaist @eyllanesc. Yes I am using a TableView to display the table of data and QFormLayout and QDataWidgetMapper to update, delete and insert records. I am passing configuration parameters to format column titles with friendlier text and format numbers and texts like @eyllanesc showed. As my app will have several different tables I just thought that a reimplementation of QSqlTableModel could be a one stop shop for everything and got stuck with the delete record. Thanks guys!
  • This topic is deleted!

    Solved
    3
    0 Votes
    3 Posts
    10 Views
  • Re-Occuring problem when using QX11EmbedContainer::embedClient()

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

    Solved
    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • Dynamic widgets with Splitter

    Unsolved
    2
    0 Votes
    2 Posts
    184 Views
    mrjjM
    Hi Did you try https://doc.qt.io/qt-5/qml-qtquick-controls-splitview.html#details
  • Launcher for multiple apps

    Unsolved
    8
    0 Votes
    8 Posts
    763 Views
    S
    That's the way I'd like to go. Unfortunately I can't use a Tool interface, as the only commonality between tools is that they emit a windowClosed() event; that means the interface will need to inherit QObject, and if a tool inherits QMainWindow, as it most certainly will, that will lead to multiple inheritance. But I can't be certain that a tool will inherit QMainWindow, so I'd like to avoid creating an abstract base class inheriting QMainWindow. With this in mind, I think the windowClosed() event should be renamed to something more generic, such as toolClosed(). Anyway, I think if a tool has a QMainWindow, or another widget, instead of inheriting from it, it will solve the problem with the inheritance. I'll try that and come back if I still can't figure it out. Thanks for the suggestion!
  • How to handle unknown arguments with QCommandLineParser

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    T
    Thanks, @Christian-Ehrlicher. I wasn't aware of this function, I am going to try to remove all unknown arguments before running parse() and avoid having to ignore a return value on dubious purpose.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    80 Views
    No one has replied
  • How to remove QPushButton border but keep effect

    Unsolved qpushbutton stylesheet qicon
    3
    0 Votes
    3 Posts
    3k Views
    dporobicD
    Yes, it was a custom widget in title bar. I wasn't able to figure out where this is coming from so I went with a different solution but still strange behavior.
  • 0 Votes
    4 Posts
    266 Views
    Christian EhrlicherC
    @jbbb said in How to extract variable created in the function to the variable outside of the function?: any example? Take a c++ book, read about classes. Nothing Qt-specific here, simple c++ basics. Sorry.
  • Changing button color doesn't work !

    Solved
    3
    0 Votes
    3 Posts
    285 Views
    F
    Thanks it works!
  • How to style each custom button in global QMessageBox styleSheet ?

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    LematL
    @Christian-Ehrlicher, it work well now as expected after i created my own dialog inherit QDialog and used setStyleSheet for the whole personal dialog. thank you for your help.