Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • Building OCI plugin on Windows

    Solved oci
    4
    0 Votes
    4 Posts
    555 Views
    SGaistS
    Hi, @Zapelniczek said in Building OCI plugin on Windows: After deleting file config.cache i was able to build correctly plugin. Plus i had to switch to 32x compiler and qmake to get rid of linking errors for some reason qmake only linked 32x libraries from enviornment variables. Problem solved. Likely because only the 32bit versions of the dependencies are located where your environment variables points them.
  • QTcpSocket to PLC S1200

    Unsolved siemens plc qtcpsoket qtcpserver ethernet
    4
    0 Votes
    4 Posts
    1k Views
    Pablo J. RoginaP
    @AlexisLara19 said in QTcpSocket to PLC S1200: but don't works fine What are the issues? The problem is that you cannot use it with Qt? Are you able to use it standalone?
  • When using QT_SCALE_FACTOR qcombobox items cannot be clicked

    Unsolved
    1
    0 Votes
    1 Posts
    145 Views
    No one has replied
  • Program throws issue "Failed to extract plugin meta data from .dll"

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    SGaistS
    Your dll version ?
  • Resizing QLineEdits in QLayouts

    Unsolved
    16
    0 Votes
    16 Posts
    1k Views
    eyllanescE
    @CEO Plop, so you know more about me than I know. Do not overestimate me, I do not understand some things because perhaps you do not know how to explain it or because I am not able to understand you.
  • Linux x11 is required even if I compile with QT -= gui and CONFIG += console

    Unsolved
    2
    0 Votes
    2 Posts
    151 Views
    SGaistS
    Hi, Using the widgets module implies the gui module. By the way QVector3D is in the gui module. Are you using classes which requires a QApplication ? If not the just use a QCoreApplication. If you need a QApplication then use the offscreen backend.
  • Opening large image files

    Unsolved
    5
    0 Votes
    5 Posts
    923 Views
    SGaistS
    Hi, You bring that question to the OpenCV folks since you are using their library to handle such files. They will be better equipped to answer about the limitations of their framework.
  • This topic is deleted!

    Unsolved
    6
    0 Votes
    6 Posts
    27 Views
  • .dll cannot be loaded

    Unsolved
    4
    0 Votes
    4 Posts
    763 Views
    JonBJ
    @Rabih-EL-Kadi I haven't used windeployqt. But I would have thought it should include that Qt5Xml.dll correctly for you. I don't know how it works, but verify whether you have told it about that file?
  • This topic is deleted!

    Unsolved
    35
    0 Votes
    35 Posts
    87 Views
  • what is keyword i have to use instead snprintf in qt ?

    Solved
    10
    0 Votes
    10 Posts
    699 Views
    JonBJ
    @Qt-embedded-developer I think it most unlikely that an implementation of snprintf() will "crash" (or go wrong) if more than 20 characters, and I don't know where you think you have heard this. It would have been reported. So static char filename[20]; snprintf (filename, 20, "/dev/i2c-%d", adapter_nr); should be fine. However this doesn't matter if you use QString methods anyway.
  • Qt c++ camera storage and bandwith calculator

    Unsolved
    1
    0 Votes
    1 Posts
    122 Views
    No one has replied
  • Load a csv file into a QTablewidget

    Solved
    8
    0 Votes
    8 Posts
    3k Views
    S
    @coilo said in Load a csv file into a QTablewidget: Why should i create a QAbstractTableModel ? I am sorry i am new with qt so i don't really get it I didn't propose to create QAbstractTableModel, I proposed to create your own model that will do CSV file operations and derive this new model class from QAbstractTableModel. Have you checked the URL I provided? As you are new to Qt I highly recommend you to read it in order to better understand Qt approach for similar tasks. It will save you time in future. Of course you may use QTableWidget alone if your task is pretty simple.
  • QFirmata on Windows 10

    Solved
    9
    0 Votes
    9 Posts
    1k Views
    M
    @MScottM Error: SerialFirmata is not a type
  • The button is only stroked on one side, and the text will move

    Unsolved
    2
    0 Votes
    2 Posts
    169 Views
    C
    I do not see anything like a button being hovered with moving text in your video. If the overall size of the button is not changing, and you increase the bottom border from 0 to 2 pixels, then the padding and content would have to move up to allow the border to be drawn. https://doc.qt.io/qt-5/stylesheet-customizing.html#box-model You could try always having a 2 pixel bottom border that changes from rgb(255,255,255,0) to rgb(255,255,255,255), i.e. from transparent white to opaque white.
  • Blocking Signals to child widgets

    Unsolved
    8
    0 Votes
    8 Posts
    3k Views
    jeremy_kJ
    @SimonSchroeder said in Blocking Signals to child widgets: One further possiblity (which we have in some places in our code) is to use a seperate wrapper class to block signals. This is, in our code, a class called SignalBlocker. The constructor(s) call blockSignals(true) on the object handed to it and the destructor calls blockSignals(false). In a addition to this operator->() is overloaded (this is C++, though), which allows for simple syntax: SignalBlocker(this->_edit_distance)->setValue(source.distance); SignalBlocker(this->_edit_someothervalue)->setValue(source.someothervalue); There's QSignalBlocker that accomplishes the same task with slightly different syntax. PyQt5's documentation mentions the class.
  • Widget resize

    Unsolved
    6
    0 Votes
    6 Posts
    452 Views
    S
    @satyanarayana143 Do you use more than one display in your setup? Maybe one being HighDPI and the other being a regular display? Or are you having trouble with just a single display (which is HighDPI) connected? Are you planning on supporting multi-monitor setup with different resolution scaling? The solution to your problem depends on what you are trying to achieve (supporting different scalings on multiple displays is quite involved and simpler solutions can be used if this is not your goal).
  • 0 Votes
    9 Posts
    2k Views
    A
    @JonB setting ui->tableWidget->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents); helped, thanks a lot!
  • 0 Votes
    5 Posts
    468 Views
    J.HilkJ
    then that way is not possible. You can incorporate c files/code in a c++ project or you can include a c++ library(precompiled) in a c project but you can't s imply include c++ code into a c project.
  • Slots in the second window?

    Unsolved
    11
    0 Votes
    11 Posts
    629 Views
    KroMignonK
    @RootLearner said in Slots in the second window?: When receive slot is called, the ui is not updated but when I close the window, the qDebug in "opening movielist" and case 0 is run. How do I solve this? I need it to update the ui as per the integer passed via signals. For me it looks like there is a forever loop which locks the thread event loop. The emitted signals are stored in event loop, but as the thread is lock in a forever loop, the associated slots are called when forever loop ends and event loop is running. What are you doing in movie class?