Skip to content
QtWS25 Last Chance
  • D-Pointer for Custom Classes

    Solved General and Desktop
    4
    0 Votes
    4 Posts
    52 Views
    Z
    @Pl45m4 and @SGaist thank you for the guidance here. I'll review my code and leave a final post if there is anything useful as I troubleshoot where the private headers were included if others have this issue.
  • QTreeWidgetItem Icon disappears in QT6

    Unsolved General and Desktop
    5
    0 Votes
    5 Posts
    61 Views
    W
    @Christian-Ehrlicher said in QTreeWidgetItem Icon disappears in QT6: Please provide a minimal, compileable example of the problem. Here's an example code.: QtTreeViewTest.zip The issue comes up with my own checkboxes. Again, under QT5 everything was fine.
  • 0 Votes
    2 Posts
    19 Views
    SGaistS
    Hi and welcome to devnet, AFAIK, you can't change the buttons size. It's the window manager of the OS you are using that is in charge of that. As for add/removing them: setWindowFlags with the appropriate flags.
  • Qt online installer error

    Moved Unsolved Installation and Deployment
    2
    0 Votes
    2 Posts
    15 Views
    SGaistS
    Hi and welcome to devnet, Did you try with a different mirror ?
  • 0 Votes
    2 Posts
    52 Views
    SGaistS
    Hi, AFAIK, I don't think you can by yourself. These addresses should be in sync. Did you do anything with them lately ?
  • 2 lines in columns headers

    Unsolved General and Desktop
    4
    0 Votes
    4 Posts
    52 Views
    A.A.SEZENA
    For QTableWidget, C++, just put \n where you want to split the header. I haven't tried it for QTableView.
  • How to snap QMdiSubWindow to corners/edges of QMdiArea

    Unsolved General and Desktop
    6
    1 Votes
    6 Posts
    360 Views
    RokeJulianLockhartR
    @sammonius, I'm struggling with this, too. Have you ascertained whether a solution exists? Thus far, I've been forced to resort to QDockWidgets instead. Perhaps we'll need to request it at JIRA.
  • Qt Styling QTreeWidget : Remove Focus on Icons

    Unsolved General and Desktop
    6
    0 Votes
    6 Posts
    58 Views
    Axel SpoerlA
    That could be because XUbuntu is Gnome based. Please try a bit, e.g. adding the code after the style sheet.
  • How to determine system encoding in Qt 6?

    Unsolved Qt 6
    2
    0 Votes
    2 Posts
    25 Views
    Axel SpoerlA
    I'd do the following: const QLocale locale = QLocale::system(); const auto encoding = QStringConverter::encodingForName(locale.name().toUtf8());
  • Context menu when right-clicking on a QMenu on Linux

    Solved General and Desktop
    3
    0 Votes
    3 Posts
    35 Views
    S
    Thanks. I think you're right: it looks like the same bug I'm experiencing.
  • How can I change my personal email of qt account

    Unsolved The Lounge
    3
    0 Votes
    3 Posts
    735 Views
    RokeJulianLockhartR
    @Thank-You, login.qt.io/change_email now exists.
  • Frame color/palette of QGroupBox?

    Unsolved General and Desktop qpalette qgroupbox qstyle qproxystyle
    4
    1 Votes
    4 Posts
    705 Views
    Christian EhrlicherC
    @RokeJulianLockhart said in Frame color/palette of QGroupBox?: That seems worth filing a bug about. A style can do whatever it likes. Here it was decided to paint them through a semi-transparent png. It's maybe not nice but... if you come up with an equivalent solution which does exactly the same with some palette stuff - feel free to post a patch.
  • How to get current theme color ?

    Unsolved QML and Qt Quick theme color qml
    5
    1 Votes
    5 Posts
    3k Views
    RokeJulianLockhartR
    @SeeLook, is it accessible from outside QML?
  • Error when building Qt5.15.16 from source

    Unsolved General and Desktop
    13
    0 Votes
    13 Posts
    108 Views
    hskoglundH
    Hi, good advice of @Christian-Ehrlicher 's to skip it, otherwise there is a solution here: https://bugreports.qt.io/browse/QTBUG-122589
  • 0 Votes
    1 Posts
    10 Views
    No one has replied
  • Qt Stripe payment integration

    Unsolved General and Desktop
    2
    0 Votes
    2 Posts
    49 Views
    Axel SpoerlA
    I guess you mean to integrate Stripe by using its REST API? You can check this blog, to see how this can be implemented in your desktop application.
  • Qt6 protobuf generated files are different to protoc

    Unsolved General and Desktop
    4
    0 Votes
    4 Posts
    54 Views
    P
    I've moved on from this and have changed my code. One issue I have is that #include <QProtobufSerializer> gives this error fatal error: QProtobufSerializer: No such file or directory cmake is find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Protobuf) if(Qt6Protobuf_FOUND) message(STATUS "Using Qt6's Protobuf") set(Protobuf_LIBRARIES Qt${QT_VERSION_MAJOR}::Protobuf) else() message(FATAL_ERROR "Missing Qt Protobuf compiler.") endif() set(PROTO_SOURCES RemoteMessages.proto) add_library(lib-networkremote STATIC) qt_add_protobuf(lib-networkremote PROTO_FILES ${PROTO_SOURCES} ) target_sources(lib-networkremote PRIVATE incomingmsg.cpp incomingmsg.h outgoingmsg.cpp outgoingmsg.h ) Include directories target_include_directories(lib-networkremote PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR}/src ${CMAKE_BINARY_DIR}/src ) Link against required libraries target_link_libraries(lib-networkremote PRIVATE ${GLIB_LIBRARIES} Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Network Qt${QT_VERSION_MAJOR}::Gui )
  • Dock panels glitching out

    Unsolved General and Desktop
    2
    1 Votes
    2 Posts
    33 Views
    Axel SpoerlA
    Well, you have definitively found a bug, thanks! Setting a style or a palette isn't necessary to reproduce it. The issue reproduces on openSuSE Tumbleweed with Qt 6.10 just like that: #include <QApplication> #include <QMainWindow> #include <QDockWidget> #include <QStyleFactory> #include <QTextEdit> struct MainWindow : public QMainWindow { MainWindow(QWidget *parent = nullptr); void createDockWidget(const QString &title, Qt::DockWidgetArea area); }; MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { // Set dock options for better behavior setDockOptions(QMainWindow::AllowTabbedDocks | QMainWindow::AllowNestedDocks | QMainWindow::GroupedDragging | QMainWindow::AnimatedDocks); // Create dockable panels createDockWidget("Dock Panel 1", Qt::LeftDockWidgetArea); createDockWidget("Dock Panel 2", Qt::RightDockWidgetArea); createDockWidget("Dock Panel 3", Qt::TopDockWidgetArea); createDockWidget("Dock Panel 4", Qt::BottomDockWidgetArea); // Set window size and title resize(1600, 1200); setWindowTitle("Dockable Panels Example"); } void MainWindow::createDockWidget(const QString &title, Qt::DockWidgetArea area) { // Create the dockable panel QDockWidget *dockWidget = new QDockWidget(title, this); dockWidget->setObjectName(title); dockWidget->setAllowedAreas(Qt::AllDockWidgetAreas); dockWidget->setFeatures(QDockWidget::DockWidgetMovable | QDockWidget::DockWidgetClosable | QDockWidget::DockWidgetFloatable); QTextEdit *textEdit = new QTextEdit(dockWidget); textEdit->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); dockWidget->setWidget(textEdit); // Add the dock widget to the main window addDockWidget(area, dockWidget); // Set minimum sizes to prevent complete collapse dockWidget->setMinimumWidth(100); dockWidget->setMinimumHeight(100); // Ensure docks are not floating initially dockWidget->setFloating(false); // Show the dock widget dockWidget->show(); } int main(int argc, char* argv[]) { QApplication app(argc, argv); MainWindow mainWindow; mainWindow.show(); return app.exec(); }; Feel free to submit a bug report at https://bugreports.qt.io, use the above as a reproducer and assign the ticket to me. My guess is, that the minimum width/height don't get applied initially when the dock widgets are still docked. Undocking and docking causes them to be applied.
  • Using QNetworkAccessManager to download a big file.

    Unsolved General and Desktop
    6
    0 Votes
    6 Posts
    169 Views
    piervalliP
    If URL contains a space 0x20, Is It work?
  • 0 Votes
    5 Posts
    73 Views
    C
    Just an addendum to this post: I closed Qt Creator after the above post. When I opened it again today to test the module functions, Qt tried to revert everything to GCC. The kits I had removed had come back, the default compiler was set to /usr/bin/gcc and every time I edited a file I got a dialog box asking if I wished to change back to GCC. I had to go into the build settings and manually edit the compiler line and set it back to clang and then the dialog went away. Am I really going to have to do this every time I want to use clang? Hopefully, GCC15.1 will be available soon on Homebrew and it will recognize modules and vcpkg packages properly!