Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • When I should do use the _p.h header file.

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    C
    The *_p.h files are the declaration of a private implementation, PIMPL, of the related class e.g., qlocale.h and qlocale_p.h. PIMPL is used for varied reasons, for example: Make maintaining binary compatibility across versions easier. So, for example, code written and linked against Qt 5.12 can use a Qt 5.15 library set even if the internal implementation of some classes is wildly different. Make implementation opaque, with only a public API header published with a binary library. Qt does both. Have a read here for example.
  • Unable to move ScrollBar to the top

    Solved
    11
    0 Votes
    11 Posts
    1k Views
    supergS
    @SGaist I changed the desing: Now QPushButtons are displayed in the QScrollArea, so the Button with the ssid and the other elements (The line to write a password, the button to connect to a network) are shown separately. With these simple changes, the code I wrote before works like a charm! True, It wasn't what I originally intended, but I realized that it's far better due to the circumstances where this app is going to be used. Thanks for your time and your help!
  • QTextDocumentWriter removes transfers to tables when creating a document

    Unsolved
    1
    0 Votes
    1 Posts
    116 Views
    No one has replied
  • CQtDeployer - change script to restart app

    Solved
    2
    0 Votes
    2 Posts
    235 Views
    JoeCFDJ
    Find pid of any running TestApp and kill it first before each launch
  • How do you change application title bar height?

    Unsolved
    4
    0 Votes
    4 Posts
    699 Views
    JoeCFDJ
    https://stackoverflow.com/questions/4507864/how-to-customize-the-title-bar-of-a-qt-app-through-qt-stylesheet Maybe you have to customize title bar. That means to create your own one.
  • Extending QSqlRelationalTableModel

    Solved
    21
    0 Votes
    21 Posts
    5k Views
    kkmspbK
    @kkmspb Maybe you can see our free Qt project (4.8.1, Windows). This project contains several classes inherited from the base classes QSqlTableModel and QTableView. The PblSqlRelationalTableModel class is inherited from QSqlTableModel. The PblTableView class is inherited from QTableView. As a result, a combining class PblTableDlg was created with the composition PblTableView and PblSqlRelationalTableModel. The QTableView class contains full functionality for managing a database table: creating, copying, deleting rows. There is a search, selection by value. Fields in the form of combobox, checkbox,... External links and substitutions from other tabs work automatically. Everything is configured simply in one configuration file config.cpp . All three editing strategies are supported. [image: 4220_2.png]
  • QSqlRelationalTableModel questions

    7
    0 Votes
    7 Posts
    3k Views
    kkmspbK
    @udx6bs said in QSqlRelationalTableModel questions: trying to experiment with QSqlRelationalTableModel and QTableView. I'm using the SQLite driver and Qt 4.8 compiled(32bit) on Win7/64bit. I have the following ques Maybe you can see our free Qt project (4.8.1, Windows). This project contains several classes inherited from the base classes QSqlTableModel and QTableView. The PblSqlRelationalTableModel class is inherited from QSqlTableModel. The PblTableView class is inherited from QTableView. As a result, a combining class PblTableDlg was created with the composition PblTableView and PblSqlRelationalTableModel. The QTableView class contains full functionality for managing a database table: creating, copying, deleting rows. There is a search, selection by value. Fields in the form of combobox, checkbox,... External links and substitutions from other tabs work automatically. Everything is configured simply in one configuration file config.cpp . All three editing strategies are supported. github
  • Qt 6 and CMake platform dependent code not working. Why?

    Unsolved
    2
    0 Votes
    2 Posts
    233 Views
    Christian EhrlicherC
    I don't see what this should have to do with qmake or cmake - those defines come from Qt (exactly: qsystemdetection.h, automatically included by qglobal.h) so make sure qglobal.h is included before you use those macros.
  • The CMake "include" vs "add_subdirectory" with Qt. Which is better?

    Solved
    5
    0 Votes
    5 Posts
    4k Views
    B
    @Christian-Ehrlicher Thx. Issue closed.
  • Check if method existed in subclassed QObject. How?

    Solved
    7
    0 Votes
    7 Posts
    980 Views
    B
    @J-Hilk Thx that's what been seeking. Issue closed
  • QTimer understanding

    Unsolved
    10
    0 Votes
    10 Posts
    797 Views
    Christian EhrlicherC
    @JeniaR said in QTimer understanding: That thread does some working and that's why it's required as a separate thread This still does not answer why a QTimer in this thread emits a signal which is handled in the main thread - this makes no sense.
  • How to make a line break in a table?

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

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

    Unsolved
    1
    0 Votes
    1 Posts
    30 Views
    No one has replied
  • Communicating a Qml file with a C++ file in Qt

    Solved
    1
    0 Votes
    1 Posts
    148 Views
    No one has replied
  • QML update Image source with base64

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    JKSHJ
    @raven-worx said in QML update Image source with base64: Image { source: "image://mybase64/data:image/png;base64,iVBORw0KGgoA......" } No need for a custom QQuickImageProvider. QML can decode data URLs! Image { source: "data:image/png;base64,iVBORw0KGgoA......" }
  • paintEvent() not called after call to update()

    Solved
    8
    0 Votes
    8 Posts
    7k Views
    J
    @Christian-Ehrlicher As per Qt documentation Repaint , Repaints the widget directly by calling paintEvent() immediately, unless updates are disabled or the widget is hidden. As per my understanding, Repaint should invoke the paintEvent() immediately, but It observed similar behavior both update() and repaint().
  • How to use HandwritingInputPanel of Qt Virtual Keyobard?

    Unsolved
    1
    0 Votes
    1 Posts
    165 Views
    No one has replied
  • The inferior stopped because it triggered an eaxception.

    Solved
    2
    0 Votes
    2 Posts
    288 Views
    Chris KawaC
    Hi, welcome to te forum. Qt uses native file dialogs. It's an internal exception of the Windows API and it is handled there. You can safely ignore it and continue debugging.
  • Qt6 with cmake and Visual Studio 17 2022 generator

    Solved
    3
    0 Votes
    3 Posts
    3k Views
    T
    @cristian-adam Thanks a lot. The argument is set in my CMakeSettings file and I didn't recognize that Visual Studio 17 2022 implicitly means Win32. I set it to Win64 and it works. Sorry for thinking that this doesn't work in general. I thought I already made a boiled down example, but obviously missed that one.