Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • How conver RTF to HTML

    Unsolved
    3
    0 Votes
    3 Posts
    628 Views
    M
    Maybe you can get an example based on this code: QString file = QFileDialog::getOpenFileName(0, "Document RTF, "", "*.rtf"); if(!file.isEmpty()) { QFile sFile(file); if(sFile.open(QFile::ReadOnly | QFile::Text)){ QTextStream in(&sFile); QString text = in.readAll(); sFile.close(); //QTextDocument textDocument; ui->ResumeHHTextEdit->setHtml(text); qDebug()<<text; } }
  • QToolBar and other QWidgets

    Solved
    5
    0 Votes
    5 Posts
    863 Views
    M
    Following your hints I did that entirely by code.
  • how to disable a complete a drop box of QComboxbox and state of QCombobox

    Unsolved
    3
    0 Votes
    3 Posts
    414 Views
    mrjjM
    Hi and after you clear it , you can do ui->comboBox->setEnabled(false); to prevent any more clicking on it.
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    31 Views
  • Help Needed : Android QML App with OpenGL ES/EGL API interjector/shim

    Unsolved
    1
    0 Votes
    1 Posts
    309 Views
    No one has replied
  • Problems when Qt online installing

    Unsolved
    6
    0 Votes
    6 Posts
    842 Views
    tomyT
    @J.Hilk Qt Maintenance Tool is also faulty. I select some options and when done and re-look at the items I see it itself has selected and deselected other options! It itself removed MinGw and now must wait hours to reinstall it. Damn. Really damn
  • QLineEdit + QUndoCommand::mergeWidth crashes App

    Unsolved
    12
    0 Votes
    12 Posts
    2k Views
    Christian EhrlicherC
    It's also working with 5.12 / 64 bit.
  • qtreeview weird behavior on column click

    Solved
    7
    0 Votes
    7 Posts
    963 Views
    U
    @SGaist that didn't work because column 0 didn't exist yet when i set the resize mode. EDIT: i also needed to set QHeaderView::Fixed for the second column, and it worked. @mrjj that had no effect on column width. EDIT: setDefaultSectionSize() seemed to do the trick. reference answer used: https://stackoverflow.com/questions/47769122/qtreeview-with-fixed-column-widths
  • Audio Input Example

    Unsolved
    6
    0 Votes
    6 Posts
    943 Views
    B
    Just found this thread: https://forum.qt.io/topic/97570/macos-mojave-privacy-prompt-not-appearing-when-debugging-audio-app-in-qt-creator/6 that deals with the same issue regarding microphone audio issues in Mojave. The solution does not seem to work for me. Interestingly, I get: "Unable to load Info.plist exceptions (eGPUOverrides)" when running the application in debug mode.
  • How to embed a qwindow into qmainwindow

    Unsolved
    8
    0 Votes
    8 Posts
    3k Views
    JKSHJ
    @nathanday89 said in How to embed a qwindow into qmainwindow: Yes, the unmodified example works for me. I just want to embed the window that pops up inside a Qwidget in my mainwindow.ui instead of it opening a window of its own. Then you have just made a mistake while copying+pasting the code. Your original post contained Window *view = new Window(); -- this line does not exist in the Basic Shapes example. I recommend you make a copy of the original Basic Shapes project and gradually insert your own code into it. The first thing to try is replace the code that shows the top-level widget with your own QMainWindow: /* (Original code) // Show window widget->show(); widget->resize(1200, 800); */ // (Replacement code) QMainWindow myWindow; myWindow.setCentralWidget(widget); myWindow.show()
  • Question about Qt::QueuedConnection

    Unsolved
    2
    0 Votes
    2 Posts
    414 Views
    dheerendraD
    No Yes
  • Add framework IOKit

    Unsolved
    3
    0 Votes
    3 Posts
    526 Views
    A
    Hi, Some example that shows how to get the list of USB devices connected to the computer. As the list that shows "System report-> USB-> USB device tree" on mac. Thanks for helping.
  • qt5 connect to lambda

    Solved
    13
    0 Votes
    13 Posts
    4k Views
    sonichyS
    connect(reply, &QNetworkReply::downloadProgress, [=](qint64 bytesReceived, qint64 bytesTotal){ ...... });
  • I need to get the row number in QTableView when i click the ViewProfile Button

    Solved
    9
    0 Votes
    9 Posts
    2k Views
    SGaistS
    If your slot is in the same class as the buttons and QTableView, then you already have everything needed.
  • QXmlQuery

    Unsolved
    2
    0 Votes
    2 Posts
    328 Views
    SGaistS
    Hi and welcome to devnet, I don't think it's implemented. You can use the QXmlStreamReader/Writer classes to read modify/write or QDomDocument.
  • Qt licensing

    Unsolved
    4
    0 Votes
    4 Posts
    598 Views
    SGaistS
    Hi, Same disclaimers as my fellows apply For LGPL and static linking, you have to provide your users with a mean to re-build the executable/library against a different version of Qt. Which means it could be enough to provide them with the build artefacts of all your project objects (on each platform you support). In practice it's way simpler to have the sources at their disposal because you would have to keep the artefacts for each and every release you do.
  • QFileSystemWatcher::fileChanged not being triggered, only once the file is closed

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    R
    @mrjj Yeah sadly i have read that and hoped there was an alternative. Well i decided to use QTimer and read only from the last position i was at last iteration. Since this is a log file, i don't have to worry about modified or deleted data, it can only be added lines.
  • How to find Bug in Qt!!

    Solved
    11
    0 Votes
    11 Posts
    1k Views
    S
    Think's all problem is solved.
  • Two durations of QMediaPlayer file

    Unsolved qmediaplayer problem
    3
    1 Votes
    3 Posts
    1k Views
    N
    Thank you for the greeting. The file is working fine with the other players (VLC, Windows 10 player).
  • Is it possible to inherit from an Qt Ui Designer Class?

    Solved
    6
    0 Votes
    6 Posts
    864 Views
    Pablo J. RoginaP
    @incam if your issue is solved, please don't forget to mark your post as such. Thanks.