Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • Inner widget doesn't closes in a modified QFileDialog

    Unsolved
    5
    0 Votes
    5 Posts
    532 Views
    M
    @Pl45m4 That is the whole issue - I am using standard Qt file dialog in a non native mode, and I don't have its implementation code. If I did, we probably wouldn't have to do any of this
  • Use tcp connection like Sql Database

    Unsolved qtcpsocket tcp qsqldatabase qsqlquery qtcpserver
    5
    0 Votes
    5 Posts
    935 Views
    JonBJ
    @Narutoblaze Then no you cannot, as you can see in the documentation for QTcpSocket/ QAbstractSocket. If there were a method which took a "connection name" you would see it documented. There is nothing to stop you writing your own code to store connections indexed by some "connection name" you choose, e.g. using a QMap Class.
  • How do I tell when GUI is fully displayed

    Unsolved
    4
    0 Votes
    4 Posts
    324 Views
    S
    Slightly different idea: If you know what you are doing call repaint instead of update (update might gather a few calls before actually repainting). If repaint is called from the GUI thread it will block until it is done. So, after repaint returns you'll know that it has completed. Only don't call repaint too often. This will have really bad performance.
  • setMaximunSize(?,?)

    Solved
    4
    0 Votes
    4 Posts
    282 Views
    M
    @Pl45m4 Thanks :) I solve it. WpubEditor::WpubEditor(QWidget *parent) : QMainWindow(parent) , ui(new Ui::WpubEditor) , styleSheet() , mainLayout(nullptr) , vBoxLayout(nullptr) , buttonLayout(nullptr) , btnWrapper(nullptr) , stackedLayout(nullptr) , buttonLabel(nullptr) , m_pPubManager(nullptr) , webView(nullptr) , channel(nullptr) { //setMinimumSize(960, 640); ui->setupUi(this); webView = new QWebEngineView(this); // QWebEngineView 객체 초기화 setCentralWidget(webView); QString htmlPath = QFileInfo(__FILE__).dir().absolutePath() + "/main.html"; QFile file(htmlPath); if (file.exists()) { webView->load(QUrl::fromLocalFile(htmlPath)); } else { qDebug() << "Failed to load canvas.html. File not found."; } channel = new QWebChannel(webView->page()); webView->page()->setWebChannel(channel); channel->registerObject("wpubEditor", this); createStatusBar(); initResources(); showMaximized(); }
  • Not to show console window when using system()

    Solved
    14
    0 Votes
    14 Posts
    2k Views
    jeremy_kJ
    C++17's std::filesystem::copy has a recursive option.
  • Getting RecursionError: maximum recursion depth exceeded while calling a Python object

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    M
    After completing all of the above, now there is a strange error that happens when you select an entry and press Enter. Please see this thread for more description about what is happening now If you have any idea what is going on, I would appreciate it!
  • QML WebView transparent background

    Unsolved
    1
    0 Votes
    1 Posts
    167 Views
    No one has replied
  • Overlapping widgets

    Solved
    6
    0 Votes
    6 Posts
    986 Views
    Pl45m4P
    @SteveFalco said in Overlapping widgets: I haven't learned about iterators yet. :-) I dont say you have to use a "real" iterator. There is this mysterious thing called for loop :-)
  • OpenCV linking undefined References

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    I
    @Christian-Ehrlicher Well, that explains it *facepalm*. I didnt catch that.
  • Enabling Qt Widgets application to run with no gui capability (e. g. SSH) on Linux

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    V
    Good suggestions, thanks!
  • How to hide a QMainWindow until later?

    Unsolved
    16
    0 Votes
    16 Posts
    2k Views
    SPlattenS
    @JonB , I was using the splash ui in my application purely for experimentation, I now have proven that I can dynamically create menus that are specified in my XML files and I have subscribers that are connected to the menu signals, it all works really well.
  • Running the example form GitHub

    Solved
    7
    0 Votes
    7 Posts
    581 Views
    D
    Ok, works. Thanks.
  • Merge item in QGridLayout

    Unsolved
    2
    0 Votes
    2 Posts
    463 Views
    JonBJ
    @Hai-Anh-Luu "Merging" must be achieved by spanning rows and/or columns. void QGridLayout::addWidget(QWidget *widget, int fromRow, int fromColumn, int rowSpan, int columnSpan, Qt::Alignment alignment = Qt::Alignment()) and similar allow this when placing an item. I do not see a method to alter the spanning once an item has been added.
  • custom plot

    Unsolved
    9
    0 Votes
    9 Posts
    1k Views
    T
    @Rockerz said in custom plot: @JonB I tried but I got tar.gz file extracted and add these file (qcustomplot.h, qcustomplot.cpp) I'm getting many unresolved errors where to get the dll file ? I searched and I download from official website only tar files I found (https://www.qcustomplot.com/index.php/introductionbasket random If you encounter unresolved errors, ensure that the compiler is configured correctly to use the Qt framework and that the QCustomPlot library is properly linked to your project. Check for any typos in the include statements and library paths. Under "Additional Libraries," add the path to the qcustomplot.lib file (e.g., C:\Qt\5.14.2\msvc2019_64\lib\qcustomplot.lib).
  • Default field highlight color changed in Qt 6

    Solved
    3
    0 Votes
    3 Posts
    417 Views
    S
    Also could be a setting of your OS (or the window manager on Linux). Which OS are you using?
  • Widget Style is different if App is running in Qt Creator then "outside" under Windows

    Unsolved
    4
    0 Votes
    4 Posts
    418 Views
    Christian EhrlicherC
    @ChrisW67 Because windows and fusion are built-in into QtWidgets.
  • So tell me why.....(MQTT)

    Unsolved
    4
    0 Votes
    4 Posts
    347 Views
    sierdzioS
    @ThirdStrand I see "Qt MQTT" in my installer (so under commercial license) for Qt 6 - it is under "Additional Libraries". So either it is missing from Open Souce installer (which would be weird) or maybe you are looking at Qt 5?
  • Configuring Qt5.15.2 for Linux '-no-xinput2' error?

    Unsolved
    2
    0 Votes
    2 Posts
    297 Views
    Christian EhrlicherC
    @yygk said in Configuring Qt5.15.2 for Linux '-no-xinput2' error?: ERROR: Unknown command line option '-no-xinput2'. This means that this configure option is not available - see configure --help to find out which options it provides.
  • Position in itemChange

    Unsolved
    5
    0 Votes
    5 Posts
    461 Views
    S
    @SGaist Yes, if the doc snippet is copypasted, and everything else is commented out, - same issue. I'll try on new project, maybe got any new ideas.
  • QMenu Crashed On win10 sometimes, Why?

    Unsolved
    4
    0 Votes
    4 Posts
    339 Views
    JoeCFDJ
    @MayEnjoy Did you try a lower version or a higher version to see if the issue is fixed?