Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • QScrollArea with - multiple QWidgets w/ QTreeViews in each

    Unsolved
    5
    0 Votes
    5 Posts
    237 Views
    SGaistS
    What do you mean by entire space ? Can you show a picture of what you get ? What do you expect exactly ?
  • Virtual keyboard HideKeyboardKey

    Unsolved
    2
    0 Votes
    2 Posts
    132 Views
    S
    I am facing the same issue. Did you get any leads on how to support the HideKeyboardKey? Please let me know.
  • How I listen serial port with writing client code?

    Unsolved qserialport qtserialport cpp serialport virtual
    6
    0 Votes
    6 Posts
    1k Views
    KroMignonK
    @elypheldia said in How I listen serial port with writing client code?: Sorry if used the wrong term. I am new on qt. I wanted to indicate that I read the data I wrote to the tnt0 serial port from terminal with using cat /dev/tnt0. But How can I do this with client code instead of reading from terminal. I just wanna open the tnt1 serial port from code., and I wanna read from there. You are confusing to me. Do you want to use /dev/tnt0 or /dev/tnt1? With the code example you have provided, you are writing hello on serial device /dev/tnt0. Is this working? You have defined a slot MySerialPort::readData() , which is called when data are ready to be read from serial port. I have proposed you some changes to display debug message when slot is called. Is this slot called? I don't know: what kind of device is connected to this serial port? if the serial port configuration is correct according to attached device? the attached device communication protocol: It is a binary or text protocol? Are carriage return or line feed required?
  • Can an end user make a dialog window size persistent, or change the default?

    Solved
    5
    0 Votes
    5 Posts
    311 Views
    P
    @jsulm Thank you very much
  • Appimage creation of Qt applications

    Unsolved appimage deploy deployment
    3
    0 Votes
    3 Posts
    4k Views
    gde23G
    The reason linuxdeployqt does not support your latest ubuntu is not, that its not up to date, but it is on purpose. If you build your appimage on a new linux and then want to run it on an older installation it might not work there since e.g. the libc version on the older system does not support new features that have been added. And running on any system is the whole point of the appimage.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    25 Views
    No one has replied
  • Showing pictures in a tableView by reading from a database?

    Solved
    5
    0 Votes
    5 Posts
    270 Views
    eyllanescE
    @RootLearner Oops, I forgot to point out that you have to add: ui->tableView->setItemDelegateForColumn(column1, new ImageDelegate); ui->tableView->setItemDelegateForColumn(column2, new ImageDelegate);
  • Change input keyboard language / layout

    Unsolved
    5
    0 Votes
    5 Posts
    341 Views
    J
    Well if you start the app on a different layout (in our case, a different language), you might not notice it and the we would expect 'a' but get a ש. This is problematic. Maybe my phrasing wasn't right, it's more about the language and not the layout.
  • How to build qrc resources into static library?

    Solved
    3
    0 Votes
    3 Posts
    960 Views
    MozzieM
    @mrjj Thank you very much, It works!
  • '#pragma optimize' is not supported

    Solved
    10
    0 Votes
    10 Posts
    2k Views
    Chris KawaC
    Qt Creator uses Clang for code model, so it will show warnings for MSVC specific stuff sometimes. You can safely disable this warning by going to Tools -> Options -> C++ -> Code Model. Click on the Diagnostic Configuration button and in the dialog that opens select "Build-system warnings". Click on Copy and give the new configuration some friendly name. Select that new configuration and in the Clang Warnings below add -Wno-ignored-pragma-optimize. This will disable this particular warning in the ui. Don't worry, it will not affect how the code is compiled or what warnings are issued by the compiler. You can add more exclusions here if you ever find other MSVC specific differences.
  • Assertion error while opening the same JSON file twice using QFIle

    Unsolved
    5
    0 Votes
    5 Posts
    612 Views
    D
    @JonB Thanks !! That was the issue. Index of JsonArray was the problem. I solved it earlier.
  • Playbackrate for QMediaplayer or Audio Qml type is not working as excepted.

    Unsolved
    1
    0 Votes
    1 Posts
    108 Views
    No one has replied
  • building CMake project with external configuration file in Qt Creator

    Unsolved
    2
    0 Votes
    2 Posts
    139 Views
    C
    You are using a relative path, so that will break if the working directory is not where you think it is (e.g. it is the build output directory and not the source directory). Try using an absolute path as an experiment.
  • Drag and drop for files in directory, path drag and drop order through to python?

    Unsolved
    1
    0 Votes
    1 Posts
    408 Views
    No one has replied
  • Creating and destroying non-modal dialogs

    Unsolved
    2
    0 Votes
    2 Posts
    116 Views
    mrjjM
    Hi There is a flag for that use case diag->setAttribute(Qt::WA_DeleteOnClose); It will make it delete it self when close() is called.
  • Can't use Qt Creator after trial period expired

    Solved
    7
    0 Votes
    7 Posts
    397 Views
    Kent-DorfmanK
    I think I had to log into my account and check a box indicating I was using Qt for personal use God, I miss the tolltech days.
  • connect to sql server ?

    Unsolved
    2
    0 Votes
    2 Posts
    130 Views
    mrjjM
    Hi What error do you get from trying to open the connection ? Should give a hint. Did you also include any client Database DLLs in setup,exe ?
  • What is the best way to create scalable UI and write code for it?

    Unsolved designer creator scalable
    5
    0 Votes
    5 Posts
    919 Views
    mrjjM
    Hi For the scalable part. You must use Layouts from the very start. https://doc.qt.io/qt-5/layout.html
  • Painting into QImage with several layer vs one QImage (problem)

    Unsolved
    1
    0 Votes
    1 Posts
    151 Views
    No one has replied
  • Q3DScatter text labels

    Unsolved
    1
    0 Votes
    1 Posts
    112 Views
    No one has replied